type OpenAPISpec = Record const openapi: OpenAPISpec = { components: { schemas: { access_code: { description: 'Represents a smart lock [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).\n\nAn access code is a code used for a keypad or pinpad device. Unlike physical keys, which can easily be lost or duplicated, PIN codes can be customized, tracked, and altered on the fly. Using the Seam Access Code API, you can easily generate access codes on the hundreds of door lock models with which we integrate.\n\nSeam supports programming two types of access codes: [ongoing](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#ongoing-access-codes) and [time-bound](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#time-bound-access-codes). To differentiate between the two, refer to the `type` property of the access code. Ongoing codes display as `ongoing`, whereas time-bound codes are labeled `time_bound`. An ongoing access code is active, until it has been removed from the device. To specify an ongoing access code, leave both `starts_at` and `ends_at` empty. A time-bound access code will be programmed at the `starts_at` time and removed at the `ends_at` time.\n\nIn addition, for certain devices, Seam also supports [offline access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code.\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.', properties: { access_code_id: { description: 'Unique identifier for the access code.', format: 'uuid', type: 'string', }, code: { description: 'Code used for access. Typically, a numeric or alphanumeric string.', nullable: true, type: 'string', }, common_code_key: { description: 'Unique identifier for a group of access codes that share the same code.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the access code was created.', format: 'date-time', type: 'string', }, device_id: { description: 'Unique identifier for the device associated with the access code.', format: 'uuid', type: 'string', }, display_status: { description: 'Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.', type: 'string', }, dormakaba_oracode_metadata: { description: 'Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.', nullable: true, properties: { is_cancellable: { description: 'Indicates whether the stay can be cancelled via the Dormakaba Oracode API.', type: 'boolean', }, is_early_checkin_able: { description: 'Indicates whether early check-in is available for this stay.', type: 'boolean', }, is_extendable: { description: 'Indicates whether the stay can be extended via the Dormakaba Oracode API.', type: 'boolean', }, is_overridable: { description: 'Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.', type: 'boolean', }, site_name: { description: 'Dormakaba Oracode site name associated with this access code.', type: 'string', }, stay_id: { description: 'Dormakaba Oracode stay ID associated with this access code.', format: 'float', type: 'number', }, user_level_id: { description: 'Dormakaba Oracode user level ID associated with this access code.', type: 'string', }, user_level_name: { description: 'Dormakaba Oracode user level name associated with this access code.', nullable: true, type: 'string', }, }, type: 'object', }, ends_at: { description: 'Date and time after which the time-bound access code becomes inactive.', format: 'date-time', nullable: true, type: 'string', }, errors: { description: 'Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['provider_issue'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Failed to set code on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_set_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Failed to remove code from device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_remove_from_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Duplicate access code detected on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['duplicate_code_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, managed_access_code_id: { description: 'ID of the managed access code that conflicts with this managed access code, when Seam can identify it.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, unmanaged_access_code_id: { description: 'ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.', format: 'uuid', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'No space for access code on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['no_space_for_access_code_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.', properties: { change_type: { description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.", enum: ['modified', 'removed'], type: 'string', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['conflicting_external_modification'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, modified_fields: { description: 'List of fields that were changed externally, with their previous and new values.', items: { properties: { field: { description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).', type: 'string', }, from: { description: 'The previous value of the field.', nullable: true, type: 'string', }, to: { description: 'The new value of the field.', nullable: true, type: 'string', }, }, required: ['field', 'from', 'to'], type: 'object', }, type: 'array', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_code_inactive'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: "The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['code_constraints_violated'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_issue'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', 'x-undocumented': 'Unreleased.', }, { description: "Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_update'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', 'x-undocumented': 'Unreleased.', }, { description: 'Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_delete'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Salto site user limit has been reached.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { description: "Indicates that the provider's system to which this device belongs is not letting Seam act on it, so Seam cannot manage access codes or unlock the device. The error message says which of three causes applies. Seam's integration user may not have sufficient permissions on the provider's system, or may have been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. The provider account or site may not have a valid subscription with the provider: set up or renew that subscription with the provider. Or the provider may have rejected the credential Seam uses to operate the device's hub: contact Seam support to re-activate it.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { deprecated: true, description: 'Indicates that the device is offline.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_offline'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-deprecated': 'Use `device_disconnected` instead.', 'x-resource-type': 'device', }, { description: 'Indicates that the device has been removed.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_removed'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the hub is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['hub_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the device is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['empty_backup_access_code_pool'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the user is not authorized to use the August lock.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['august_lock_not_authorized'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['low_battery'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: 'Indicates that device credentials are missing.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['missing_device_credentials'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the auxiliary heat is running.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['auxiliary_heat_running'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that a subscription is required to connect.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['subscription_required'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, is_backup: { description: 'Indicates whether the access code is a backup code.', type: 'boolean', }, is_backup_access_code_available: { description: 'Indicates whether a backup access code is available for use if the primary access code is lost or compromised.', type: 'boolean', }, is_external_modification_allowed: { description: 'Indicates whether changes to the access code from external sources are permitted.', type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the access code.', enum: [true], type: 'boolean', }, is_offline_access_code: { description: 'Indicates whether the access code is intended for use in offline scenarios. If `true`, this code can be created on a device without a network connection.', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, is_scheduled_on_device: { description: 'Indicates whether the code is set on the device according to a preconfigured schedule.', type: 'boolean', }, is_waiting_for_code_assignment: { description: 'Indicates whether the access code is waiting for a code assignment.', type: 'boolean', }, name: { description: "Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`. To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints. To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", nullable: true, type: 'string', }, pending_mutations: { description: 'Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of setting an access code on the device.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of setting an access code on the device.', enum: ['creating'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: "Seam is waiting until closer to the access code's start time before programming it on the device.", properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: "Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.", enum: ['deferring_creation'], type: 'string', }, scheduled_at: { description: 'Date and time at which Seam will attempt to program this access code on the device.', format: 'date-time', type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'scheduled_at', ], type: 'object', }, { description: 'Seam is in the process of removing an access code from the device.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, is_code_usable: { description: 'Indicates whether the access code may still unlock the device while Seam removes it, based on the last state Seam observed. `false` means the device has already stopped accepting the code, for example, because a natively scheduled code passed its `ends_at`, and only cleanup remains.', type: 'boolean', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of removing an access code from the device.', enum: ['deleting'], type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'is_code_usable', ], type: 'object', }, { description: 'Seam is in the process of pushing an updated PIN code to the device.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous code configuration.', properties: { code: { description: 'Previous PIN code.', nullable: true, type: 'string', }, }, required: ['code'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device.', enum: ['updating_code'], type: 'string', }, to: { description: 'New code configuration.', properties: { code: { description: 'New PIN code.', nullable: true, type: 'string', }, }, required: ['code'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an updated access code name to the device.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous name configuration.', properties: { name: { description: 'Previous access code name.', nullable: true, type: 'string', }, }, required: ['name'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device.', enum: ['updating_name'], type: 'string', }, to: { description: 'New name configuration.', properties: { name: { description: 'New access code name.', nullable: true, type: 'string', }, }, required: ['name'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an updated time frame to the device.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous time frame configuration.', properties: { ends_at: { description: 'Previous end time for the access code.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for the access code.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device.', enum: ['updating_time_frame'], type: 'string', }, to: { description: 'New time frame configuration.', properties: { ends_at: { description: 'New end time for the access code.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for the access code.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, ], }, type: 'array', }, pulled_backup_access_code_id: { description: 'Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.', format: 'uuid', nullable: true, type: 'string', }, starts_at: { description: 'Date and time at which the time-bound access code becomes active.', format: 'date-time', nullable: true, type: 'string', }, status: { deprecated: true, description: 'Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).', enum: ['setting', 'set', 'unset', 'removing', 'unknown'], type: 'string', 'x-deprecated': "Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.", }, type: { description: 'Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.', enum: ['time_bound', 'ongoing'], type: 'string', }, warnings: { description: 'Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', items: { description: 'Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['code_rotates_periodically'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: "The device's time zone is unknown and this code's time frame crosses a daylight-saving transition in at least one plausible time zone. A 1-hour safety buffer has been applied to the side of the time frame affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's time zone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact handling.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_frame_adjusted_for_unknown_time_zone'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.', properties: { change_type: { description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.", enum: ['modified', 'removed'], type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, modified_fields: { description: 'List of fields that were changed externally, with their previous and new values.', items: { properties: { field: { description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).', type: 'string', }, from: { description: 'The previous value of the field.', nullable: true, type: 'string', }, to: { description: 'The new value of the field.', nullable: true, type: 'string', }, }, required: ['field', 'from', 'to'], type: 'object', }, type: 'array', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['external_modification_in_effect'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Delay in setting code on device.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_setting_on_device'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { deprecated: true, description: 'Delay in removing code from device.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_removing_from_device'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', 'x-deprecated': 'Seam no longer sets this warning. Use the `failed_to_remove_from_device` error instead.', }, { description: 'Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_issuing'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Third-party integration detected that may cause access codes to fail.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['third_party_integration_detected'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Algopins must be used within 24 hours.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['igloo_algopin_must_be_used_within_24_hours'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Management was transferred to another workspace.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['management_transferred'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'A backup access code has been pulled and is being used in place of this access code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['using_backup_access_code'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Access code is being deleted, because it was deleted or passed its `ends_at`. It can no longer be updated.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: "Seam had been unable to reach the device for an extended period when this access code was created, so the code is unlikely to be set until the device reconnects. Check the device's connection. This warning clears automatically when the device comes back online or the code is set on the device.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_unreachable_since: { description: 'Date and time since which Seam has been unable to reach the device.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_unreachable_for_extended_period'], type: 'string', }, }, required: [ 'message', 'warning_code', 'device_unreachable_since', ], type: 'object', }, { description: 'An unknown issue occurred with the access code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_access_code'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, workspace_id: { description: 'Unique identifier for the Seam workspace associated with the access code.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'common_code_key', 'type', 'access_code_id', 'device_id', 'name', 'code', 'created_at', 'errors', 'warnings', 'is_managed', 'status', 'display_status', 'is_backup_access_code_available', 'is_external_modification_allowed', 'is_one_time_use', 'is_offline_access_code', 'pending_mutations', ], type: 'object', 'x-route-path': '/access_codes', }, access_grant: { description: 'Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.', properties: { access_grant_id: { description: 'ID of the Access Grant.', format: 'uuid', type: 'string', }, access_grant_key: { description: 'Unique key for the access grant within the workspace.', type: 'string', }, access_method_ids: { description: 'IDs of the access methods created for the Access Grant.', items: { format: 'uuid', type: 'string' }, type: 'array', }, client_session_token: { description: 'Client Session Token. Only returned if the Access Grant has a mobile_key access method.', type: 'string', }, created_at: { description: 'Date and time at which the Access Grant was created.', format: 'date-time', type: 'string', }, customization_profile_id: { description: 'ID of the customization profile associated with the Access Grant.', format: 'uuid', type: 'string', }, display_name: { description: 'Display name of the Access Grant.', type: 'string', }, display_status: { description: "Human-readable sentence answering whether the user can currently get in, for example `Active`, `Awaiting issuance`, or `Upcoming`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `starts_at`, `ends_at`, `errors`, and the access methods' own fields.", type: 'string', }, ends_at: { description: 'Date and time at which the Access Grant ends.', format: 'date-time', nullable: true, type: 'string', }, errors: { description: 'Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that Seam could not create one or more of the requested access methods for the access grant.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['cannot_create_requested_access_methods'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, missing_device_ids: { description: 'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_grant', }, { description: 'Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_not_provisioned'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_grant', }, ], }, type: 'array', }, instant_key_url: { description: 'Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ', format: 'uri', type: 'string', }, location_ids: { deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `space_ids`.', 'x-end-of-life': '2026-11-09', }, name: { description: 'Name of the Access Grant. If not provided, the display name will be computed.', nullable: true, type: 'string', }, pending_mutations: { description: 'List of pending mutations for the access grant. This shows updates that are in progress.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of updating the devices/spaces associated with this access grant.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous location configuration.', properties: { device_ids: { description: 'Previous device IDs where access codes existed.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant.', enum: ['updating_spaces'], type: 'string', }, to: { description: 'New location configuration.', properties: { common_code_key: { description: 'Common code key to ensure PIN code reuse across devices.', nullable: true, type: 'string', }, device_ids: { description: 'New device IDs where access codes should be created.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of updating the access times for this access grant.', properties: { access_method_ids: { description: 'IDs of the access methods being updated.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous access time configuration.', properties: { ends_at: { description: 'Previous end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access grant.', enum: ['updating_access_times'], type: 'string', }, to: { description: 'New access time configuration.', properties: { ends_at: { description: 'New end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'access_method_ids', 'from', 'to', ], type: 'object', }, ], }, type: 'array', }, requested_access_methods: { description: 'Access methods that the user requested for the Access Grant.', items: { properties: { code: { description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.", maxLength: 9, minLength: 4, pattern: '^\\d+$', type: 'string', }, created_access_method_ids: { description: 'IDs of the access methods created for the requested access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the requested access method was added to the Access Grant.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name of the access method.', type: 'string', }, instant_key_max_use_count: { description: "Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.", minimum: 1, type: 'integer', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, }, required: [ 'display_name', 'mode', 'created_at', 'created_access_method_ids', ], type: 'object', }, type: 'array', }, reservation_key: { description: 'Reservation key for the access grant.', type: 'string', }, space_ids: { description: 'IDs of the spaces to which the Access Grant gives access.', items: { format: 'uuid', type: 'string' }, type: 'array', }, starts_at: { description: 'Date and time at which the Access Grant starts.', format: 'date-time', type: 'string', }, user_identity_id: { description: 'ID of user identity to which the Access Grant gives access.', format: 'uuid', type: 'string', }, warnings: { description: 'Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', items: { description: 'Warning associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access grant](https://www.seam.co/docs/use-cases/granting-access) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['underprovisioned_access'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, failed_devices: { description: 'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).', items: { properties: { device_id: { description: 'Device whose access code could not be revoked.', format: 'uuid', type: 'string', }, error_code: { description: 'Reason the access code could not be revoked.', enum: ['offline_access_code_not_revocable'], type: 'string', }, message: { description: 'Human-readable description of why revocation failed.', type: 'string', }, }, required: ['device_id', 'error_code', 'message'], type: 'object', }, type: 'array', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['overprovisioned_access'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access times for this [access grant](https://www.seam.co/docs/use-cases/granting-access) are being updated.', properties: { access_method_ids: { description: 'IDs of the access methods being updated.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['updating_access_times'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'access_method_ids', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.', properties: { access_method_id: { description: 'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The new PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that was unavailable.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device that does not support access codes.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_does_not_support_access_codes'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'device_id', ], type: 'object', }, { description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device whose time constraints the access grant violates.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, reason: { description: "Specific reason why the grant's times are not programmable on the device.", enum: [ 'duration_exceeds_max', 'times_do_not_match_slots', 'ongoing_not_supported', ], type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_time_constraints_violated'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'device_id', 'reason', ], type: 'object', }, { description: "Indicates that one of this access grant's access methods no longer grants access because of a change outside Seam, for example its card was encoded again for another credential. Seam does not replace the access method; issue a new one if the user still needs it.", properties: { access_method_id: { description: 'ID of the access method whose access was revoked.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['access_revoked'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'access_method_id', ], type: 'object', }, { description: "Indicates that Seam did not issue the mobile key requested for this access grant, because the user's email address or phone number belongs to other user identities and Seam cannot tell which person's app should receive it. The other requested access methods were issued.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['mobile_key_withheld'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the Seam workspace associated with the Access Grant.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'access_grant_id', 'user_identity_id', 'location_ids', 'space_ids', 'requested_access_methods', 'access_method_ids', 'name', 'display_name', 'created_at', 'starts_at', 'ends_at', 'display_status', 'warnings', 'errors', 'pending_mutations', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/access_grants', }, access_method: { description: 'Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.', properties: { access_method_id: { description: 'ID of the access method.', format: 'uuid', type: 'string', }, client_session_token: { description: 'Token of the client session associated with the access method.', type: 'string', }, code: { description: 'The actual PIN code for code access methods.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the access method was created.', format: 'date-time', type: 'string', }, customization_profile_id: { description: 'ID of the customization profile associated with the access method.', format: 'uuid', type: 'string', }, display_name: { description: 'Display name of the access method.', type: 'string', }, display_status: { description: 'Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.', type: 'string', }, errors: { description: 'Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Error associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that Seam was unable to issue this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) before its access grant started, so the recipient may be unable to access the space. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and this error clears automatically if the access method is eventually issued.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_issue'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, { description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_not_provisioned'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, ], }, type: 'array', }, instant_key_url: { description: 'URL of the Instant Key for mobile key access methods.', format: 'uri', type: 'string', }, is_assignment_required: { description: 'Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.', type: 'boolean', }, is_encoding_required: { description: 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.', type: 'boolean', }, is_issued: { description: 'Indicates whether the access method has been issued.', type: 'boolean', }, is_ready_for_assignment: { description: 'Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.', type: 'boolean', }, is_ready_for_encoding: { description: 'Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.', type: 'boolean', }, issued_at: { description: 'Date and time at which the access method was issued.', format: 'date-time', nullable: true, type: 'string', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, pending_mutations: { description: 'Pending mutations for the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of provisioning access for this access method on new devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access was provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.', enum: ['provisioning_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access is being provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of revoking access for this access method from devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access existed.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.', enum: ['revoking_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access should remain.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of updating the access times for this access method.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous access time configuration.', properties: { ends_at: { description: 'Previous end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access method.', enum: ['updating_access_times'], type: 'string', }, to: { description: 'New access time configuration.', properties: { ends_at: { description: 'New end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'The access system has not yet received all the access this card needs. A card encoded now would carry only the access the system already has, so wait until this clears before encoding.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.', enum: ['waiting_for_access_on_acs_system'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, ], }, type: 'array', }, warnings: { description: 'Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Warning associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access times for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) are being updated.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['updating_access_times'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that all attempts to create an access code on this device before the start time failed and a backup access code was used to ensure access was provided in time.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, original_access_method_id: { description: 'ID of the original access method from which this backup access method was split, if applicable.', format: 'uuid', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['pulled_backup_access_code'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that Seam has not yet issued this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_issuing'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_email_address'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_phone_number'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the Seam workspace associated with the access method.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'access_method_id', 'display_name', 'mode', 'created_at', 'issued_at', 'is_issued', 'display_status', 'warnings', 'errors', 'pending_mutations', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/access_methods', }, acs_access_group: { description: 'Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.\n\nSome access control systems use [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups), which are sets of users, combined with sets of permissions. These permissions include both the set of areas or assets that the users can access and the schedule during which the users can access these areas or assets. Instead of assigning access rights individually to each access control system user, which can be time-consuming and error-prone, administrators can assign users to an access group, thereby ensuring that the users inherit all the permissions associated with the access group. Using access groups streamlines the process of managing large numbers of access control system users, especially in bigger organizations or complexes.\n\nTo learn whether your access control system supports access groups, see the corresponding [system integration guide](https://www.seam.co/docs/device-and-system-integration-guides#access-control-systems).', properties: { access_group_type: { deprecated: true, enum: [ 'pti_unit', 'pti_access_level', 'salto_ks_access_group', 'brivo_group', 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', 'avigilon_alta_group', 'kisi_access_group', 'akiles_member_group', ], type: 'string', 'x-deprecated': 'Use `external_type`.', 'x-end-of-life': '2026-11-09', }, access_group_type_display_name: { deprecated: true, type: 'string', 'x-deprecated': 'Use `external_type_display_name`.', 'x-end-of-life': '2026-11-09', }, access_schedule: { description: "`starts_at` and `ends_at` timestamps for the access group's access.", properties: { ends_at: { description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, acs_access_group_id: { description: 'ID of the access group.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access control system that contains the access group.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account that contains the access group.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the access group was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the access group.', type: 'string', }, errors: { description: 'Errors associated with the `acs_access_group`.', items: { description: 'Error associated with the `acs_access_group`.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups) was not created on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_create_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_access_group', }, ], }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the access group type.', enum: [ 'pti_unit', 'pti_access_level', 'salto_ks_access_group', 'brivo_group', 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', 'avigilon_alta_group', 'kisi_access_group', 'akiles_member_group', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the access group type.', type: 'string', }, is_managed: { description: 'Indicates whether Seam manages the access group.', enum: [true], type: 'boolean', }, name: { description: 'Name of the access group.', type: 'string' }, pending_mutations: { description: 'Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of pushing an access group creation to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system.', enum: ['creating'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing an access group deletion to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system.', enum: ['deleting'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'This access group is scheduled for automatic deletion when its access window expires.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.', enum: ['deferring_deletion'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing an access group information update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access group information.', properties: { name: { description: 'Name of the access group.', nullable: true, type: 'string', }, }, type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system.', enum: ['updating_group_information'], type: 'string', }, to: { description: 'New access group information.', properties: { name: { description: 'Name of the access group.', nullable: true, type: 'string', }, }, type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access schedule update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access schedule information.', properties: { ends_at: { description: 'Ending time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.', enum: ['updating_access_schedule'], type: 'string', }, to: { description: 'New access schedule information.', properties: { ends_at: { description: 'Ending time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing a user membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old user membership.', properties: { acs_user_id: { description: 'Old user ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_user_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system.', enum: ['updating_user_membership'], type: 'string', }, to: { description: 'New user membership.', properties: { acs_user_id: { description: 'New user ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_user_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an entrance membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old entrance membership.', properties: { acs_entrance_id: { description: 'Old entrance ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_entrance_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system.', enum: ['updating_entrance_membership'], type: 'string', }, to: { description: 'New entrance membership.', properties: { acs_entrance_id: { description: 'New entrance ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_entrance_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'A scheduled user membership change is pending for this access group.', properties: { acs_user_id: { description: 'ID of the user involved in the scheduled change.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that a scheduled user membership change is pending for this access group.', enum: ['deferring_user_membership_update'], type: 'string', }, variant: { description: 'Whether the user is scheduled to be added to or removed from this access group.', enum: ['adding', 'removing'], type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'acs_user_id', 'variant', ], type: 'object', }, ], }, type: 'array', }, warnings: { description: 'Warnings associated with the `acs_access_group`.', items: { description: 'Warning associated with the `acs_access_group`.', oneOf: [ { description: 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_access_group'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the access group.', format: 'uuid', type: 'string', }, }, required: [ 'acs_access_group_id', 'acs_system_id', 'workspace_id', 'connected_account_id', 'name', 'access_group_type', 'access_group_type_display_name', 'display_name', 'external_type', 'external_type_display_name', 'created_at', 'errors', 'warnings', 'pending_mutations', 'is_managed', ], type: 'object', 'x-route-path': '/acs/access_groups', }, acs_credential: { description: 'Means by which an [access control system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `acs_credential` object represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nAn access control system generally uses digital means of access to authorize a user trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.\n\nFor each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type.\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the credential.', enum: [true], type: 'boolean', }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials', }, acs_credential_pool: { deprecated: true, properties: { acs_credential_pool_id: { format: 'uuid', type: 'string' }, acs_system_id: { format: 'uuid', type: 'string' }, created_at: { format: 'date-time', type: 'string' }, display_name: { minLength: 1, type: 'string' }, external_type: { enum: ['hid_part_number'], type: 'string' }, external_type_display_name: { type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'acs_credential_pool_id', 'acs_system_id', 'display_name', 'external_type', 'external_type_display_name', 'created_at', 'workspace_id', ], type: 'object', 'x-deprecated': 'Not used.', 'x-end-of-life': '2026-11-09', 'x-route-path': '/acs/credential_pools', 'x-undocumented': 'Deprecated. Will be removed.', }, acs_credential_provisioning_automation: { deprecated: true, properties: { acs_credential_provisioning_automation_id: { format: 'uuid', type: 'string', }, created_at: { format: 'date-time', type: 'string' }, credential_manager_acs_system_id: { format: 'uuid', type: 'string' }, user_identity_id: { format: 'uuid', type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'acs_credential_provisioning_automation_id', 'credential_manager_acs_system_id', 'user_identity_id', 'created_at', 'workspace_id', ], type: 'object', 'x-deprecated': 'Not used.', 'x-end-of-life': '2026-11-09', 'x-route-path': '/acs/credential_provisioning_automations', 'x-undocumented': 'Deprecated. Will be removed.', }, acs_encoder: { description: 'Represents a hardware device that encodes [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) data onto physical cards within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nSome access control systems require credentials to be encoded onto plastic key cards using a card encoder. This process involves the following two key steps:\n\n1. Credential creation\n Configure the access parameters for the credential.\n2. Card encoding\n Write the credential data onto the card using a compatible card encoder.\n\nSeparately, the Seam API also supports card scanning, which enables you to scan and read the encoded data on a card. You can use this action to confirm consistency with access control system records or diagnose discrepancies if needed.\n\n See [Working with Card Encoders and Scanners](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).\n\nTo verify if your access control system requires a card encoder, see the corresponding [system integration guide](https://www.seam.co/docs/device-and-system-integration-guides#access-control-systems).', properties: { acs_encoder_id: { description: 'ID of the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', type: 'string', }, errors: { description: 'Errors associated with the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', items: { description: 'Error associated with the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['acs_encoder_removed'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_encoder', }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', format: 'uuid', type: 'string', }, }, required: [ 'acs_encoder_id', 'acs_system_id', 'connected_account_id', 'workspace_id', 'errors', 'created_at', 'display_name', ], type: 'object', 'x-route-path': '/acs/encoders', }, acs_entrance: { description: 'Represents an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nIn an access control system, an entrance is a secured door, gate, zone, or other method of entry. You can list details for all the `acs_entrance` resources in your workspace or get these details for a specific `acs_entrance`. You can also list all entrances associated with a specific credential, and you can list all credentials associated with a specific entrance.', properties: { acs_entrance_id: { description: 'ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { actions: { description: 'Actions the gadget exposes (for example, open).', items: { properties: { id: { description: 'ID of the gadget action.', type: 'string', }, name: { description: 'Name of the gadget action.', type: 'string', }, }, type: 'object', }, type: 'array', }, gadget_id: { description: 'ID of the Akiles gadget.', type: 'string', }, site_id: { description: 'ID of the Akiles site the gadget belongs to.', type: 'string', }, site_name: { description: 'Name of the Akiles site the gadget belongs to.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { door_name: { description: 'Name of the door in the Vostio access system.', type: 'string', }, door_number: { description: 'Number of the door in the Vostio access system.', format: 'float', type: 'number', }, door_type: { description: 'Type of the door in the Vostio access system.', enum: ['CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator'], type: 'string', }, pms_id: { description: 'PMS ID of the door in the Vostio access system.', type: 'string', }, stand_open: { description: 'Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system.', type: 'boolean', }, }, type: 'object', }, avigilon_alta_metadata: { description: 'Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { entry_name: { description: 'Entry name for an Avigilon Alta system.', type: 'string', }, entry_relays_total_count: { description: 'Total count of entry relays for an Avigilon Alta system.', format: 'float', type: 'number', }, org_name: { description: 'Organization name for an Avigilon Alta system.', type: 'string', }, site_id: { description: 'Site ID for an Avigilon Alta system.', format: 'float', type: 'number', }, site_name: { description: 'Site name for an Avigilon Alta system.', type: 'string', }, zone_id: { description: 'Zone ID for an Avigilon Alta system.', format: 'float', type: 'number', }, zone_name: { description: 'Zone name for an Avigilon Alta system.', type: 'string', }, }, type: 'object', }, brivo_metadata: { description: 'Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_id: { description: 'ID of the access point in the Brivo access system.', type: 'string', }, site_id: { description: 'ID of the site that the access point belongs to.', format: 'float', type: 'number', }, site_name: { description: 'Name of the site that the access point belongs to.', type: 'string', }, }, type: 'object', }, can_belong_to_reservation: { description: 'Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.', type: 'boolean', }, can_unlock_with_card: { description: 'Indicates whether the ACS entrance can be unlocked with card credentials.', type: 'boolean', }, can_unlock_with_cloud_key: { description: 'Indicates whether the ACS entrance can be unlocked with cloud key credentials.', type: 'boolean', }, can_unlock_with_code: { description: 'Indicates whether the ACS entrance can be unlocked with pin codes.', type: 'boolean', }, can_unlock_with_mobile_key: { description: 'Indicates whether the ACS entrance can be unlocked with mobile key credentials.', type: 'boolean', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', type: 'string', }, dormakaba_ambiance_metadata: { description: 'dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_name: { description: 'Name of the access point in the dormakaba Ambiance access system.', type: 'string', }, }, type: 'object', }, dormakaba_community_metadata: { description: 'dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_profile: { description: 'Type of access point profile in the dormakaba Community access system.', type: 'string', }, }, type: 'object', }, errors: { description: 'Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', items: { description: 'Error associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was removed from the connected account, so Seam can no longer sync it.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['entrance_removed'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_entrance', }, ], }, type: 'array', }, hotek_metadata: { description: 'Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { common_area_name: { description: 'Display name of the entrance.', type: 'string', }, common_area_number: { description: 'Display name of the entrance.', type: 'string', }, room_number: { description: 'Room number of the entrance.', type: 'string', }, }, type: 'object', }, is_locked: { description: 'Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked.', type: 'boolean', }, latch_metadata: { description: 'Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { accessibility_type: { description: 'Accessibility type in the Latch access system.', type: 'string', }, door_name: { description: 'Name of the door in the Latch access system.', type: 'string', }, door_type: { description: 'Type of the door in the Latch access system.', type: 'string', }, is_connected: { description: 'Indicates whether the entrance is connected.', type: 'boolean', }, }, type: 'object', }, salto_ks_metadata: { description: 'Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { battery_level: { description: 'Battery level of the door access device.', type: 'string', }, door_name: { description: 'Name of the door in the Salto KS access system.', type: 'string', }, intrusion_alarm: { description: 'Indicates whether an intrusion alarm is active on the door.', type: 'boolean', }, left_open_alarm: { description: 'Indicates whether the door is left open.', type: 'boolean', }, lock_type: { description: 'Type of the lock in the Salto KS access system.', type: 'string', }, locked_state: { description: 'Locked state of the door in the Salto KS access system.', type: 'string', }, online: { description: 'Indicates whether the door access device is online.', type: 'boolean', }, privacy_mode: { description: 'Indicates whether privacy mode is enabled for the lock.', type: 'boolean', }, }, type: 'object', }, salto_space_metadata: { description: 'Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { audit_on_keys: { description: 'Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system.', type: 'boolean', }, door_description: { description: 'Description of the door in the Salto Space access system.', type: 'string', }, door_id: { description: 'Door ID in the Salto Space access system.', type: 'string', }, door_name: { description: 'Name of the door in the Salto Space access system.', type: 'string', }, room_description: { description: 'Description of the room in the Salto Space access system.', type: 'string', }, room_name: { description: 'Name of the room in the Salto Space access system.', type: 'string', }, }, type: 'object', }, space_ids: { description: 'IDs of the spaces that the entrance is in.', items: { format: 'uuid', type: 'string' }, type: 'array', }, visionline_metadata: { description: 'Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { door_category: { description: 'Category of the door in the Visionline access system.', enum: [ 'entrance', 'guest', 'elevator reader', 'common', 'common (PMS)', ], type: 'string', }, door_name: { description: 'Name of the door in the Visionline access system.', type: 'string', }, profiles: { description: 'Profile for the door in the Visionline access system.', items: { properties: { visionline_door_profile_id: { description: 'Door profile ID in the Visionline access system.', type: 'string', }, visionline_door_profile_type: { description: 'Door profile type in the Visionline access system.', enum: ['BLE', 'commonDoor', 'touch'], type: 'string', }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', items: { description: 'Warning associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_entrance_access_code_support_removed'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['entrance_shares_zone'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['entrance_setup_required'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { deprecated: true, description: 'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_privacy_mode'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', 'x-deprecated': 'Use `privacy_mode` instead.', }, { description: 'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['privacy_mode'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, }, required: [ 'acs_system_id', 'acs_entrance_id', 'space_ids', 'created_at', 'display_name', 'connected_account_id', 'errors', 'warnings', ], type: 'object', 'x-route-path': '/acs/entrances', }, acs_system: { description: 'Represents an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nWithin an `acs_system`, create [`acs_user`s](https://www.seam.co/docs/api/acs/users/object) and [`acs_credential`s](https://www.seam.co/docs/api/acs/credentials/object) to grant access to the `acs_user`s.\n\nFor details about the resources associated with an access control system, see the [access control systems namespace](https://www.seam.co/docs/api/acs/object).', properties: { acs_access_group_count: { description: 'Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'float', type: 'number', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'uuid', type: 'string', }, acs_user_count: { description: 'Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'float', type: 'number', }, connected_account_id: { description: 'ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'uuid', type: 'string', }, connected_account_ids: { deprecated: true, description: 'IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `connected_account_id`.', 'x-end-of-life': '2026-11-09', }, created_at: { description: 'Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created.', format: 'date-time', type: 'string', }, default_credential_manager_acs_system_id: { description: 'ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'uuid', nullable: true, type: 'string', }, errors: { description: 'Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', items: { description: 'Error associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\nThis error might also occur if Seam Bridge is connected to the wrong [workspace](https://www.seam.co/docs/core-concepts/workspaces).\nSee also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['seam_bridge_disconnected'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\nSee also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://www.seam.co/docs/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).\nFor example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://www.seam.co/docs/core-concepts/workspaces).\nSee also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-visionline_instance_unreachable).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['visionline_instance_unreachable'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the access control system has reached the maximum number of users its license allows, so Seam cannot create new users on it and access for new guests is not provisioned. Remove unused users from the access control system or increase its license. The error clears once Seam can create users again.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['user_license_limit_reached'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: "Indicates that the provider's system backing this [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is not letting Seam act on it, so access cannot be managed until this is resolved. The error message says which of two causes applies. Either Seam's integration user does not have sufficient permissions on the provider's system, or has been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. Or the provider account or site does not have a valid subscription with the provider: set up or renew that subscription with the provider.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['acs_system_disconnected'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) to restore access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: 'Indicates that the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_certification_expired'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, { description: "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['provider_service_unavailable'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_system', }, ], }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type.', enum: [ 'pti_site', 'avigilon_alta_org', 'salto_ks_site', 'salto_space_system', 'brivo_account', 'hid_credential_manager_organization', 'visionline_system', 'assa_abloy_credential_service', 'latch_building', 'dormakaba_community_site', 'dormakaba_ambiance_site', 'legic_connect_credential_service', 'assa_abloy_vostio', 'assa_abloy_vostio_credential_service', 'hotek_site', 'kisi_organization', 'akiles_organization', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type.', type: 'string', }, image_alt_text: { description: 'Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image.', type: 'string', }, image_url: { description: 'URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', type: 'string', }, is_credential_manager: { description: 'Indicates whether the `acs_system` is a credential manager.', type: 'boolean', }, location: { description: 'Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', properties: { time_zone: { description: 'Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located.', nullable: true, type: 'string', }, }, required: ['time_zone'], type: 'object', }, name: { description: 'Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', type: 'string', }, system_type: { deprecated: true, enum: [ 'pti_site', 'avigilon_alta_org', 'salto_ks_site', 'salto_space_system', 'brivo_account', 'hid_credential_manager_organization', 'visionline_system', 'assa_abloy_credential_service', 'latch_building', 'dormakaba_community_site', 'dormakaba_ambiance_site', 'legic_connect_credential_service', 'assa_abloy_vostio', 'assa_abloy_vostio_credential_service', 'hotek_site', 'kisi_organization', 'akiles_organization', ], type: 'string', 'x-deprecated': 'Use `external_type`.', 'x-end-of-life': '2026-11-09', }, system_type_display_name: { deprecated: true, type: 'string', 'x-deprecated': 'Use `external_type_display_name`.', 'x-end-of-life': '2026-11-09', }, visionline_metadata: { description: 'Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', properties: { lan_address: { description: 'IP address or hostname of the main Visionline server relative to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) on the local network.', type: 'string', }, mobile_access_uuid: { description: 'Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset.', type: 'string', }, system_id: { description: 'Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager.', type: 'string', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', items: { description: 'Warning associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site to rectify the issue.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_almost_reached'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the Salto KS site does not accept custom PIN codes, either because its Salto subscription does not include the Custom PIN feature or because Custom PIN is turned off in the site's settings. Salto KS generates every PIN on the site, so a PIN code requested on an access grant or reservation is replaced with a Salto-generated one. The message says which of the two applies.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_custom_pins_not_supported'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) time zone could not be determined because the reported physical location does not match the time zone configured on the physical [ACS entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, misconfigured_acs_entrance_ids: { deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'this field is deprecated.', 'x-end-of-life': '2026-11-09', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_does_not_match_location'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access control system requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['setup_required'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that Seam encountered an unexpected error while syncing this [access control system](https://www.seam.co/docs/low-level-apis/access-systems), so its users, credentials, and access groups may be out of date. Seam retries on every sync cycle and clears this warning once a sync succeeds; if it persists, contact [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_system'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', 'x-resource-type': 'acs_system', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).', format: 'uuid', type: 'string', }, }, required: [ 'acs_system_id', 'is_credential_manager', 'location', 'name', 'created_at', 'workspace_id', 'connected_account_ids', 'connected_account_id', 'image_url', 'image_alt_text', 'errors', 'warnings', ], type: 'object', 'x-route-path': '/acs/systems', }, acs_user: { description: 'Represents a [user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in an [access system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nAn access system user typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.\n\nFor details about how to configure users in your access system, see the corresponding [system integration guide](https://www.seam.co/docs/device-and-system-integration-guides#access-control-systems).', properties: { access_schedule: { description: "`starts_at` and `ends_at` timestamps for the [access system user's](https://www.seam.co/docs/low-level-apis/access-systems/user-management) access.", properties: { ends_at: { description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, acs_system_id: { description: 'ID of the [access system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, connected_account_id: { description: '\n The ID of the connected account that is associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).\n ', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', type: 'string', }, email: { deprecated: true, format: 'email', type: 'string', 'x-deprecated': 'use email_address.', 'x-end-of-life': '2026-11-09', }, email_address: { description: 'Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'email', type: 'string', }, errors: { description: 'Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', items: { description: 'Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was deleted from the [access system](https://www.seam.co/docs/low-level-apis/access-systems) outside of Seam.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['deleted_externally'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not created on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_create_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not updated on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_update_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_delete_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['latch_conflict_with_resident_user'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, ], }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type.', enum: [ 'pti_user', 'brivo_user', 'hid_credential_manager_user', 'salto_site_user', 'latch_user', 'dormakaba_community_user', 'salto_space_user', 'avigilon_alta_user', 'kisi_user', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type.', type: 'string', }, full_name: { description: 'Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', minLength: 1, type: 'string', }, hid_acs_system_id: { description: 'ID of the HID access control system associated with the user.', format: 'uuid', type: 'string', }, is_managed: { description: 'Indicates whether Seam manages the access system user.', enum: [true], type: 'boolean', }, is_suspended: { description: 'Indicates whether the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is currently [suspended](https://www.seam.co/docs/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).', type: 'boolean', }, last_successful_sync_at: { description: 'The last time an internal sync job completed for this access system user.', format: 'date-time', nullable: true, type: 'string', 'x-undocumented': 'Only used internally.', }, pending_mutations: { description: 'Pending mutations associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of pushing a user creation to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.', enum: ['creating'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing a user deletion to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.', enum: ['deleting'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.', enum: ['deferring_creation'], type: 'string', }, scheduled_at: { description: 'Optional: When the user creation is scheduled to occur.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access system user information.', properties: { email_address: { description: 'Email address of the access system user.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the access system user.', nullable: true, type: 'string', }, phone_number: { description: 'Phone number of the access system user.', nullable: true, type: 'string', }, }, type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.', enum: ['updating_user_information'], type: 'string', }, to: { description: 'New access system user information.', properties: { email_address: { description: 'Email address of the access system user.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the access system user.', nullable: true, type: 'string', }, phone_number: { description: 'Phone number of the access system user.', nullable: true, type: 'string', }, }, type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access schedule update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access schedule information.', properties: { ends_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.', enum: ['updating_access_schedule'], type: 'string', }, to: { description: 'New access schedule information.', properties: { ends_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing a suspension state update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old user suspension state information.', properties: { is_suspended: { type: 'boolean' } }, required: ['is_suspended'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.', enum: ['updating_suspension_state'], type: 'string', }, to: { description: 'New user suspension state information.', properties: { is_suspended: { type: 'boolean' } }, required: ['is_suspended'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access group membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access group membership.', properties: { acs_access_group_id: { description: 'Old access group ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_access_group_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.', enum: ['updating_group_membership'], type: 'string', }, to: { description: 'New access group membership.', properties: { acs_access_group_id: { description: 'New access group ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_access_group_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'A scheduled access group membership change is pending for this user.', properties: { acs_access_group_id: { description: 'ID of the access group involved in the scheduled change.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that a scheduled access group membership change is pending for this user.', enum: ['deferring_group_membership_update'], type: 'string', }, variant: { description: 'Whether the user is scheduled to be added to or removed from the access group.', enum: ['adding', 'removing'], type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'acs_access_group_id', 'variant', ], type: 'object', }, { description: 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous credential assignment.', properties: { acs_credential_id: { description: 'Previous credential ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', enum: ['updating_credential_assignment'], type: 'string', }, to: { description: 'New credential assignment.', properties: { acs_credential_id: { description: 'New credential ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, ], }, type: 'array', }, phone_number: { description: 'Phone number of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', type: 'string', }, salto_ks_metadata: { description: 'Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', properties: { is_subscribed: { description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.", type: 'boolean', }, }, type: 'object', }, salto_space_metadata: { description: 'Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', properties: { audit_openings: { description: 'Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.', type: 'boolean', }, user_id: { description: 'User ID in the Salto Space access system.', type: 'string', }, }, type: 'object', }, user_identity_email_address: { description: 'Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', nullable: true, type: 'string', }, user_identity_full_name: { description: 'Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', type: 'string', }, user_identity_phone_number: { description: 'Phone number of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', nullable: true, type: 'string', }, warnings: { description: 'Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', items: { description: 'Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is being deleted from the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is a temporary state, and the access system user will be deleted shortly.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['being_deleted'], type: 'string' }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['salto_ks_user_not_subscribed'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) exists but is not currently able to gain access—for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['acs_user_inactive'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of this [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['unknown_issue_with_acs_user'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['latch_resident_user'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, }, required: [ 'acs_user_id', 'acs_system_id', 'workspace_id', 'created_at', 'display_name', 'warnings', 'errors', 'last_successful_sync_at', 'connected_account_id', 'is_managed', ], type: 'object', 'x-route-path': '/acs/users', }, action_attempt: { description: 'Represents an action attempt that enables you to keep track of the progress of your action that affects a physical device or system.actions against a device. Action attempts are useful because the physical world is intrinsically asynchronous.\n\nWhen you request for a device to perform an action, the Seam API immediately returns an action attempt object. In the background, the Seam API performs the action.\n\nSee also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts).', oneOf: [ { description: 'Locking a door is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of locking a door.', enum: ['LOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Locking a door succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of locking a door.', enum: ['LOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { was_confirmed_by_device: { description: 'Indicates whether the device confirmed that the lock action occurred.', type: 'boolean', }, }, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Locking a door failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of locking a door.', enum: ['LOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Unlocking a door is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of unlocking a door.', enum: ['UNLOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Unlocking a door succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of unlocking a door.', enum: ['UNLOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { was_confirmed_by_device: { description: 'Indicates whether the device confirmed that the unlock action occurred.', type: 'boolean', }, }, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Unlocking a door failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of unlocking a door.', enum: ['UNLOCK_DOOR'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Reading credential data from the physical encoder is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a credential.', enum: ['SCAN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Reading credential data from physical encoder succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a credential.', enum: ['SCAN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings.', properties: { acs_credential_on_encoder: { description: 'Snapshot of credential data read from the physical encoder.', nullable: true, properties: { card_number: { description: 'A number or string that physically identifies the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', nullable: true, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable.', format: 'date-time', nullable: true, type: 'string', }, is_issued: { description: 'Indicates whether the credential has been issued (encoded onto a card).', nullable: true, type: 'boolean', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable.', format: 'date-time', nullable: true, type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { cancelled: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled.', type: 'boolean', }, card_format: { description: 'Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', enum: ['TLCode', 'rfid48'], type: 'string', }, card_holder: { description: 'Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', type: 'string', }, card_id: { description: 'Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', type: 'string', }, common_acs_entrance_ids: { description: 'IDs of the common [entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { format: 'uuid', type: 'string' }, type: 'array', }, discarded: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded.', type: 'boolean', }, expired: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired.', type: 'boolean', }, guest_acs_entrance_ids: { description: 'IDs of the guest [entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { format: 'uuid', type: 'string' }, type: 'array', }, number_of_issued_cards: { description: 'Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'float', type: 'number', }, overridden: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden.', type: 'boolean', }, overwritten: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten.', type: 'boolean', }, pending_auto_update: { description: 'Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update.', type: 'boolean', }, }, type: 'object', }, }, required: [ 'created_at', 'is_issued', 'starts_at', 'ends_at', 'card_number', ], type: 'object', }, acs_credential_on_seam: { description: 'Corresponding credential data as stored on Seam and the access system.', nullable: true, oneOf: [ { description: 'Means by which an [access control system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `acs_credential` object represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nAn access control system generally uses digital means of access to authorize a user trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.\n\nFor each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type.\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the credential.', enum: [true], type: 'boolean', }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'unknown_issue_with_acs_credential', ], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'Means by which an [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `unmanaged_acs_credential` object, which is not managed by Seam, represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems). For each `acs_credential` object, you define the access method. You can also specify additional properties, such as a PIN code.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { enum: [false], type: 'boolean' }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'unknown_issue_with_acs_credential', ], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials/unmanaged', 'x-undocumented': 'Unreleased.', }, ], 'x-route-path': '/acs/credentials', }, warnings: { description: 'Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system.', items: { description: 'Warning related to scanning a credential.', properties: { warning_code: { description: 'Indicates a warning related to scanning a credential.', enum: [ 'acs_credential_on_encoder_out_of_sync', 'acs_credential_on_seam_not_found', ], type: 'string', }, warning_message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['warning_code', 'warning_message'], type: 'object', }, type: 'array', }, }, required: [ 'acs_credential_on_encoder', 'acs_credential_on_seam', 'warnings', ], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Reading credential data from physical encoder failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a credential.', enum: ['SCAN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { oneOf: [ { description: "Error that doesn't fit into other specific error categories.", properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['uncategorized_error'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate an expired action attempt.', properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['action_attempt_expired'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that there is no credential on the encoder.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that there is no credential on the encoder.', enum: ['no_credential_on_encoder'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the encoder is not online.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the encoder is not online.', enum: ['encoder_not_online'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that communication with the encoder timed out.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that communication with the encoder timed out.', enum: ['encoder_communication_timeout'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.', enum: ['bridge_disconnected'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, ], }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Encoding credential data from the physical encoder onto a card is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of encoding credential data from the physical encoder onto a card.', enum: ['ENCODE_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Encoding credential data from the physical encoder onto a card succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of encoding credential data from the physical encoder onto a card.', enum: ['ENCODE_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.', oneOf: [ { description: 'Means by which an [access control system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `acs_credential` object represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nAn access control system generally uses digital means of access to authorize a user trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.\n\nFor each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type.\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the credential.', enum: [true], type: 'boolean', }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'Means by which an [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `unmanaged_acs_credential` object, which is not managed by Seam, represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems). For each `acs_credential` object, you define the access method. You can also specify additional properties, such as a PIN code.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { enum: [false], type: 'boolean' }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials/unmanaged', 'x-undocumented': 'Unreleased.', }, ], }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Encoding credential data from the physical encoder onto a card failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of encoding credential data from the physical encoder onto a card.', enum: ['ENCODE_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { oneOf: [ { description: "Error that doesn't fit into other specific error categories.", properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['uncategorized_error'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate an expired action attempt.', properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['action_attempt_expired'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that there is no credential on the encoder.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that there is no credential on the encoder.', enum: ['no_credential_on_encoder'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate an incompatible card format.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate an incompatible card format.', enum: ['incompatible_card_format'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the affected credential cannot be reissued.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the affected credential cannot be reissued.', enum: ['credential_cannot_be_reissued'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the encoder is not online.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the encoder is not online.', enum: ['encoder_not_online'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that communication with the encoder timed out.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that communication with the encoder timed out.', enum: ['encoder_communication_timeout'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.', enum: ['bridge_disconnected'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.', enum: ['encoding_interrupted'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that the credential was deleted and can no longer be encoded.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that the credential was deleted and can no longer be encoded.', enum: ['credential_deleted'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, ], }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Scanning a physical card and assigning the credential is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user.', enum: ['SCAN_TO_ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Scanning a physical card and assigning the credential succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user.', enum: ['SCAN_TO_ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the credential.', enum: [true], type: 'boolean', }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Scanning a physical card and assigning the credential failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user.', enum: ['SCAN_TO_ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { oneOf: [ { description: "Error that doesn't fit into other specific error categories.", properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['uncategorized_error'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate an expired action attempt.', properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['action_attempt_expired'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that there is no credential on the encoder.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that there is no credential on the encoder.', enum: ['no_credential_on_encoder'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, ], }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Assigning a credential to an access method is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of assigning a pre-registered card credential to an access method.', enum: ['ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Assigning a credential to an access method succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of assigning a pre-registered card credential to an access method.', enum: ['ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of assigning a credential. If successful, includes the updated access method with the assigned credential.', properties: { access_method_id: { description: 'ID of the access method.', format: 'uuid', type: 'string', }, client_session_token: { description: 'Token of the client session associated with the access method.', type: 'string', }, code: { description: 'The actual PIN code for code access methods.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the access method was created.', format: 'date-time', type: 'string', }, customization_profile_id: { description: 'ID of the customization profile associated with the access method.', format: 'uuid', type: 'string', }, display_name: { description: 'Display name of the access method.', type: 'string', }, display_status: { description: 'Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.', type: 'string', }, errors: { description: 'Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Error associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that Seam was unable to issue this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) before its access grant started, so the recipient may be unable to access the space. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and this error clears automatically if the access method is eventually issued.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_issue'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, { description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_not_provisioned'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, ], }, type: 'array', }, instant_key_url: { description: 'URL of the Instant Key for mobile key access methods.', format: 'uri', type: 'string', }, is_assignment_required: { description: 'Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.', type: 'boolean', }, is_encoding_required: { description: 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.', type: 'boolean', }, is_issued: { description: 'Indicates whether the access method has been issued.', type: 'boolean', }, is_ready_for_assignment: { description: 'Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.', type: 'boolean', }, is_ready_for_encoding: { description: 'Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.', type: 'boolean', }, issued_at: { description: 'Date and time at which the access method was issued.', format: 'date-time', nullable: true, type: 'string', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, pending_mutations: { description: 'Pending mutations for the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of provisioning access for this access method on new devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access was provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.', enum: ['provisioning_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access is being provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of revoking access for this access method from devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access existed.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.', enum: ['revoking_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access should remain.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of updating the access times for this access method.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous access time configuration.', properties: { ends_at: { description: 'Previous end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access method.', enum: ['updating_access_times'], type: 'string', }, to: { description: 'New access time configuration.', properties: { ends_at: { description: 'New end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'The access system has not yet received all the access this card needs. A card encoded now would carry only the access the system already has, so wait until this clears before encoding.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.', enum: ['waiting_for_access_on_acs_system'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, ], }, type: 'array', }, warnings: { description: 'Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Warning associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access times for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) are being updated.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['updating_access_times'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that all attempts to create an access code on this device before the start time failed and a backup access code was used to ensure access was provided in time.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, original_access_method_id: { description: 'ID of the original access method from which this backup access method was split, if applicable.', format: 'uuid', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['pulled_backup_access_code'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that Seam has not yet issued this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_issuing'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_email_address'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_phone_number'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the Seam workspace associated with the access method.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'access_method_id', 'display_name', 'mode', 'created_at', 'issued_at', 'is_issued', 'display_status', 'warnings', 'errors', 'pending_mutations', ], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Assigning a credential to an access method failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of assigning a pre-registered card credential to an access method.', enum: ['ASSIGN_CREDENTIAL'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { oneOf: [ { description: "Error that doesn't fit into other specific error categories.", properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['uncategorized_error'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate an expired action attempt.', properties: { message: { description: 'Message for the error associated with the action attempt.', type: 'string', }, type: { description: 'Type of the error associated with the action attempt.', enum: ['action_attempt_expired'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, { description: 'Error to indicate that no matching credential was found.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Error type to indicate that no matching credential was found.', enum: ['credential_not_found'], type: 'string', }, }, required: ['type', 'message'], type: 'object', }, ], }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Resetting a sandbox workspace is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resetting a sandbox workspace.', enum: ['RESET_SANDBOX_WORKSPACE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Resetting a sandbox workspace succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resetting a sandbox workspace.', enum: ['RESET_SANDBOX_WORKSPACE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Resetting a sandbox workspace failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resetting a sandbox workspace.', enum: ['RESET_SANDBOX_WORKSPACE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Setting the fan mode is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the fan mode on a thermostat.', enum: ['SET_FAN_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Setting the fan mode succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the fan mode on a thermostat.', enum: ['SET_FAN_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Setting the fan mode failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the fan mode on a thermostat.', enum: ['SET_FAN_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Setting the HVAC mode is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the HVAC mode on a thermostat.', enum: ['SET_HVAC_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Setting the HVAC mode succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the HVAC mode on a thermostat.', enum: ['SET_HVAC_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Setting the HVAC mode failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the HVAC mode on a thermostat.', enum: ['SET_HVAC_MODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Activating a climate preset is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of a climate preset activation.', enum: ['ACTIVATE_CLIMATE_PRESET'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Activating a climate preset succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of a climate preset activation.', enum: ['ACTIVATE_CLIMATE_PRESET'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Activating a climate preset failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of a climate preset activation.', enum: ['ACTIVATE_CLIMATE_PRESET'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Activating the weekly program is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of returning a thermostat to its weekly program.', enum: ['ACTIVATE_WEEKLY_PROGRAM'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Activating the weekly program succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of returning a thermostat to its weekly program.', enum: ['ACTIVATE_WEEKLY_PROGRAM'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Activating the weekly program failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of returning a thermostat to its weekly program.', enum: ['ACTIVATE_WEEKLY_PROGRAM'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Simulating a keypad code entry is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a keypad code entry.', enum: ['SIMULATE_KEYPAD_CODE_ENTRY'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Simulating a keypad code entry succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a keypad code entry.', enum: ['SIMULATE_KEYPAD_CODE_ENTRY'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Simulating a keypad code entry failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a keypad code entry.', enum: ['SIMULATE_KEYPAD_CODE_ENTRY'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Simulating a manual lock action using a keypad is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a manual lock action using a keypad.', enum: ['SIMULATE_MANUAL_LOCK_VIA_KEYPAD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Simulating a manual lock action using a keypad succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a manual lock action using a keypad.', enum: ['SIMULATE_MANUAL_LOCK_VIA_KEYPAD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Simulating a manual lock action using a keypad failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of simulating a manual lock action using a keypad.', enum: ['SIMULATE_MANUAL_LOCK_VIA_KEYPAD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Pushing thermostat weekly programs is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pushing thermostat programs.', enum: ['PUSH_THERMOSTAT_PROGRAMS'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Pushing thermostat weekly programs succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pushing thermostat programs.', enum: ['PUSH_THERMOSTAT_PROGRAMS'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Pushing thermostat weekly programs failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pushing thermostat programs.', enum: ['PUSH_THERMOSTAT_PROGRAMS'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Configuring the auto-lock is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of configuring the auto-lock on a lock.', enum: ['CONFIGURE_AUTO_LOCK'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Configuring the auto-lock succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of configuring the auto-lock on a lock.', enum: ['CONFIGURE_AUTO_LOCK'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Configuring the auto-lock failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of configuring the auto-lock on a lock.', enum: ['CONFIGURE_AUTO_LOCK'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Converting an unmanaged access code to managed is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.', enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { description: 'Converting an unmanaged access code to managed succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.', enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { description: 'Converting an unmanaged access code to managed failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.', enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { description: 'Setting the speaker volume is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the volume on a speaker.', enum: ['SET_SPEAKER_VOLUME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Setting the speaker volume succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the volume on a speaker.', enum: ['SET_SPEAKER_VOLUME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Setting the speaker volume failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the volume on a speaker.', enum: ['SET_SPEAKER_VOLUME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Muting or unmuting the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of muting or unmuting a speaker.', enum: ['SET_SPEAKER_MUTE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Muting or unmuting the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of muting or unmuting a speaker.', enum: ['SET_SPEAKER_MUTE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Muting or unmuting the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of muting or unmuting a speaker.', enum: ['SET_SPEAKER_MUTE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Pausing playback on the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pausing playback on a speaker.', enum: ['PAUSE_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Pausing playback on the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pausing playback on a speaker.', enum: ['PAUSE_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { affected_device_ids: { description: 'IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['affected_device_ids'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Pausing playback on the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of pausing playback on a speaker.', enum: ['PAUSE_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Resuming playback on the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resuming playback on a speaker.', enum: ['RESUME_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Resuming playback on the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resuming playback on a speaker.', enum: ['RESUME_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { affected_device_ids: { description: 'IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['affected_device_ids'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Resuming playback on the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of resuming playback on a speaker.', enum: ['RESUME_SPEAKER_PLAYBACK'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a chime on the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a chime on a speaker.', enum: ['PLAY_SPEAKER_CHIME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a chime on the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a chime on a speaker.', enum: ['PLAY_SPEAKER_CHIME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a chime on the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a chime on a speaker.', enum: ['PLAY_SPEAKER_CHIME'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a favorite on the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a favorite on a speaker.', enum: ['PLAY_SPEAKER_FAVORITE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a favorite on the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a favorite on a speaker.', enum: ['PLAY_SPEAKER_FAVORITE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { affected_device_ids: { description: 'IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['affected_device_ids'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing a favorite on the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing a favorite on a speaker.', enum: ['PLAY_SPEAKER_FAVORITE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing an audio clip on the speaker is pending.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing an audio clip on a speaker.', enum: ['PLAY_SPEAKER_AUDIO_CLIP'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing an audio clip on the speaker succeeded.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing an audio clip on a speaker.', enum: ['PLAY_SPEAKER_AUDIO_CLIP'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Playing an audio clip on the speaker failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of playing an audio clip on a speaker.', enum: ['PLAY_SPEAKER_AUDIO_CLIP'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Setting the temperature controller mode is pending. The controller has not yet reported the requested state back.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the mode of a temperature controller, such as heating pool or spa water to a set point or turning its heating off. The attempt succeeds only once the controller reports the requested state back.', enum: ['SET_TEMPERATURE_CONTROLLER_MODE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Setting the temperature controller mode succeeded. The controller reported the requested state back.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the mode of a temperature controller, such as heating pool or spa water to a set point or turning its heating off. The attempt succeeds only once the controller reports the requested state back.', enum: ['SET_TEMPERATURE_CONTROLLER_MODE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Setting the temperature controller mode failed.', properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Action attempt to track the status of setting the mode of a temperature controller, such as heating pool or spa water to a set point or turning its heating off. The attempt succeeds only once the controller reports the requested state back.', enum: ['SET_TEMPERATURE_CONTROLLER_MODE'], type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', 'x-undocumented': 'Unreleased.', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Syncing access codes is pending.', enum: ['SYNC_ACCESS_CODES'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Syncing access codes succeeded.', enum: ['SYNC_ACCESS_CODES'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Syncing access codes failed.', enum: ['SYNC_ACCESS_CODES'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating an access code is pending.', enum: ['CREATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating an access code succeeded.', enum: ['CREATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { access_code: { additionalProperties: {}, description: 'Created access code.', type: 'object', }, }, required: ['access_code'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating an access code failed.', enum: ['CREATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting an access code is pending.', enum: ['DELETE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting an access code succeeded.', enum: ['DELETE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting an access code failed.', enum: ['DELETE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating an access code is pending.', enum: ['UPDATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating an access code succeeded.', enum: ['UPDATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { access_code: { additionalProperties: {}, description: 'Updated access code.', type: 'object', }, }, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating an access code failed.', enum: ['UPDATE_ACCESS_CODE'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating a noise threshold is pending.', enum: ['CREATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating a noise threshold succeeded.', enum: ['CREATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { noise_threshold: { additionalProperties: {}, description: 'Created noise threshold.', type: 'object', }, }, required: ['noise_threshold'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Creating a noise threshold failed.', enum: ['CREATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting a noise threshold is pending.', enum: ['DELETE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting a noise threshold succeeded.', enum: ['DELETE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: {}, type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Deleting a noise threshold failed.', enum: ['DELETE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating a noise threshold is pending.', enum: ['UPDATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for pending action attempts.', nullable: true, }, result: { description: 'Result of the action attempt. Null for pending action attempts.', nullable: true, }, status: { enum: ['pending'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'error', 'action_type', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating a noise threshold succeeded.', enum: ['UPDATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Errors associated with the action attempt. Null for successful action attempts.', nullable: true, }, result: { description: 'Result of the action.', properties: { noise_threshold: { additionalProperties: {}, description: 'Updated noise threshold.', type: 'object', }, }, required: ['noise_threshold'], type: 'object', }, status: { enum: ['success'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'error', 'action_type', 'result', ], type: 'object', }, { properties: { action_attempt_id: { description: 'ID of the action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Updating a noise threshold failed.', enum: ['UPDATE_NOISE_THRESHOLD'], type: 'string', }, created_at: { description: 'Date and time at which the action attempt was created.', format: 'date-time', type: 'string', }, error: { description: 'Error associated with the action.', properties: { message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, type: { description: 'Type of the error.', type: 'string' }, }, required: ['type', 'message'], type: 'object', }, result: { description: 'Result of the action attempt. Null for failed action attempts.', nullable: true, }, status: { enum: ['error'], type: 'string' }, }, required: [ 'action_attempt_id', 'status', 'created_at', 'result', 'action_type', 'error', ], type: 'object', }, ], 'x-route-path': '/action_attempts', }, batch: { description: 'A batch of workspace resources.', properties: { access_codes: { items: { $ref: '#/components/schemas/access_code' }, type: 'array', }, access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, acs_access_groups: { items: { $ref: '#/components/schemas/acs_access_group' }, type: 'array', }, acs_credentials: { items: { $ref: '#/components/schemas/acs_credential' }, type: 'array', }, acs_encoders: { items: { $ref: '#/components/schemas/acs_encoder' }, type: 'array', }, acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, acs_users: { items: { $ref: '#/components/schemas/acs_user' }, type: 'array', }, action_attempts: { items: { $ref: '#/components/schemas/action_attempt' }, type: 'array', }, client_sessions: { items: { $ref: '#/components/schemas/client_session' }, type: 'array', }, connect_webviews: { items: { $ref: '#/components/schemas/connect_webview' }, type: 'array', }, connected_accounts: { items: { $ref: '#/components/schemas/connected_account' }, type: 'array', }, customization_profiles: { items: { $ref: '#/components/schemas/customization_profile' }, type: 'array', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, events: { items: { $ref: '#/components/schemas/event' }, type: 'array', }, instant_keys: { items: { $ref: '#/components/schemas/instant_key' }, type: 'array', }, noise_thresholds: { items: { $ref: '#/components/schemas/noise_threshold' }, type: 'array', }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, thermostat_daily_programs: { items: { $ref: '#/components/schemas/thermostat_daily_program' }, type: 'array', }, thermostat_schedules: { items: { $ref: '#/components/schemas/thermostat_schedule' }, type: 'array', }, unmanaged_access_codes: { items: { $ref: '#/components/schemas/unmanaged_access_code' }, type: 'array', }, unmanaged_acs_access_groups: { items: { $ref: '#/components/schemas/unmanaged_acs_access_group' }, type: 'array', }, unmanaged_acs_credentials: { items: { $ref: '#/components/schemas/unmanaged_acs_credential' }, type: 'array', }, unmanaged_acs_users: { items: { $ref: '#/components/schemas/unmanaged_acs_user' }, type: 'array', }, unmanaged_devices: { items: { $ref: '#/components/schemas/unmanaged_device' }, type: 'array', }, user_identities: { items: { $ref: '#/components/schemas/user_identity' }, type: 'array', }, workspaces: { items: { $ref: '#/components/schemas/workspace' }, type: 'array', }, }, type: 'object', 'x-route-path': '/workspaces', }, bridge_client_session: { description: 'Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session.', properties: { bridge_client_machine_identifier_key: { description: 'Identifier key of the client machine for the Seam Bridge client.', type: 'string', }, bridge_client_name: { description: 'Name of the Seam Bridge client.', type: 'string', }, bridge_client_session_id: { description: 'ID of the Seam Bridge client session.', format: 'uuid', type: 'string', }, bridge_client_session_token: { description: 'Client session token associated with the Seam Bridge client session.', type: 'string', }, bridge_client_time_zone: { description: 'Time zone for the Seam Bridge client.', type: 'string', }, created_at: { description: 'Date and time at which the Seam Bridge client session was created.', format: 'date-time', type: 'string', }, errors: { description: 'Errors associated with the Seam Bridge client session.', items: { description: 'Indicates an error associated with the Seam Bridge client session.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: "Indicates that Seam cannot reach Seam Bridge's LAN.", properties: { can_tailscale_proxy_reach_bridge: { description: 'Indicates whether the Tailscale proxy can reach Seam Bridge.', nullable: true, type: 'boolean', }, can_tailscale_proxy_reach_tailscale_network: { description: 'Indicates whether the Tailscale proxy can reach the Tailscale network.', nullable: true, type: 'boolean', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_lan_unreachable'], type: 'string', }, is_bridge_socks_server_healthy: { description: "Indicates whether Seam Bridge's SOCKS server is healthy.", nullable: true, type: 'boolean', }, is_tailscale_proxy_reachable: { description: 'Indicates whether Seam can reach the Tailscale proxy.', nullable: true, type: 'boolean', }, is_tailscale_proxy_socks_server_healthy: { description: "Indicates whether the Tailscale proxy's SOCKS server is healthy.", nullable: true, type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'created_at', 'error_code', 'is_tailscale_proxy_reachable', 'is_tailscale_proxy_socks_server_healthy', 'can_tailscale_proxy_reach_tailscale_network', 'can_tailscale_proxy_reach_bridge', 'is_bridge_socks_server_healthy', ], type: 'object', 'x-resource-type': 'bridge_client_session', }, { description: 'Indicates that Seam Bridge has stopped communicating with Seam.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['no_communication_from_bridge'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'created_at', 'error_code'], type: 'object', 'x-resource-type': 'bridge_client_session', }, ], }, type: 'array', }, pairing_code: { description: 'Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace.', maxLength: 6, minLength: 6, type: 'string', }, pairing_code_expires_at: { description: 'Date and time at which the pairing code expires.', format: 'date-time', type: 'string', }, tailscale_auth_key: { description: 'Tailscale authorization key for Seam Bridge.', nullable: true, type: 'string', }, tailscale_hostname: { description: 'Tailscale hostname for Seam Bridge.', type: 'string', }, telemetry_token: { description: 'Telemetry token for the Seam Bridge client session.', nullable: true, type: 'string', }, telemetry_token_expires_at: { description: 'Date and time at which the telemetry token for the Seam Bridge client session expires.', format: 'date-time', nullable: true, type: 'string', }, telemetry_url: { description: 'Telemetry URL for the Seam Bridge client session.', nullable: true, type: 'string', }, }, required: [ 'created_at', 'bridge_client_session_id', 'bridge_client_session_token', 'pairing_code', 'pairing_code_expires_at', 'tailscale_hostname', 'tailscale_auth_key', 'bridge_client_name', 'bridge_client_time_zone', 'bridge_client_machine_identifier_key', 'errors', 'telemetry_token', 'telemetry_token_expires_at', 'telemetry_url', ], type: 'object', 'x-route-path': '/seam/bridge/v1/bridge_client_sessions', 'x-undocumented': 'Seam Bridge client only.', }, bridge_connected_systems: { description: 'Represents an access system connected to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', properties: { acs_system_display_name: { description: 'Display name for the [access system](https://www.seam.co/docs/low-level-apis/access-systems) associated with Seam Bridge.', type: 'string', }, acs_system_id: { description: 'ID of the [access system](https://www.seam.co/docs/low-level-apis/access-systems) associated with Seam Bridge.', format: 'uuid', type: 'string', }, bridge_created_at: { description: 'Date and time at which Seam Bridge was created.', format: 'date-time', type: 'string', }, bridge_id: { description: 'ID of Seam Bridge connected to the access system.', format: 'uuid', type: 'string', }, connected_account_created_at: { description: 'Date and time at which the connected account associated with Seam Bridge was created.', format: 'date-time', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with Seam Bridge.', format: 'uuid', type: 'string', }, workspace_display_name: { description: 'Display name for the [workspace](https://www.seam.co/docs/core-concepts/workspaces) with which Seam Bridge is paired.', type: 'string', }, workspace_id: { description: 'ID of the workspace with which Seam Bridge is paired.', format: 'uuid', type: 'string', }, }, required: [ 'bridge_id', 'bridge_created_at', 'connected_account_id', 'connected_account_created_at', 'acs_system_id', 'acs_system_display_name', 'workspace_id', 'workspace_display_name', ], type: 'object', 'x-route-path': '/seam/bridge/v1/bridge_connected_systems', 'x-undocumented': 'Seam Bridge client only.', }, camera_live_view_answer: { description: 'Represents the WebRTC SDP answer that starts streaming video from a camera for a live view session.', properties: { sdp_answer: { description: 'WebRTC SDP answer for the offer, limited to 64 KiB of UTF-8 data.', type: 'string', }, }, required: ['sdp_answer'], type: 'object', 'x-route-path': '/cameras/live_views', }, camera_live_view_session: { description: 'Represents a short-lived live view session for a single camera. Use the session ID and token to start a WebRTC stream and to stop the session.', properties: { camera_live_view_session_id: { description: 'ID of the camera live view session.', format: 'uuid', type: 'string', }, device_id: { description: 'ID of the camera.', format: 'uuid', type: 'string', }, expires_at: { description: 'Date and time at which the live view session expires.', format: 'date-time', type: 'string', }, token: { description: 'Token that authorizes the offer and stop requests for this session.', maxLength: 512, minLength: 1, type: 'string', }, }, required: [ 'camera_live_view_session_id', 'device_id', 'token', 'expires_at', ], type: 'object', 'x-route-path': '/cameras/live_views', }, client_session: { description: "Represents a [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.\n\nYou create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides.\n\nWhen calling the Seam API from your backend using an API key, you can pass the `user_identifier_key` as a parameter to limit results to the associated client session. For example, `/devices/list?user_identifier_key=123` only returns devices associated with the client session created with the `user_identifier_key` `123`.\n\nA client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.\n\nSee also [Get Started with React](https://www.seam.co/docs/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).", properties: { client_session_id: { description: 'ID of the client session.', format: 'uuid', type: 'string', }, connect_webview_ids: { description: 'IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', items: { format: 'uuid', type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', type: 'string', }, device_count: { description: 'Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', format: 'float', type: 'number', }, expires_at: { description: 'Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires.', format: 'date-time', type: 'string', }, token: { description: 'Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', type: 'string', }, user_identifier_key: { description: 'Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.', format: 'uuid', type: 'string', }, user_identity_ids: { deprecated: true, description: 'IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.', items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `user_identity_id` instead.', 'x-end-of-life': '2026-11-09', }, workspace_id: { description: 'ID of the workspace associated with the client session.', format: 'uuid', type: 'string', }, }, required: [ 'client_session_id', 'workspace_id', 'created_at', 'expires_at', 'token', 'user_identifier_key', 'device_count', 'connected_account_ids', 'connect_webview_ids', 'user_identity_ids', ], type: 'object', 'x-route-path': '/client_sessions', }, connect_webview: { description: 'Represents a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews).\n\nConnect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and—once your user has completed the authorization through your app—you can access and control their devices or systems using the Seam API.\n\nConnect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.\n\nTo enable a user to connect their device or system account to Seam through your app, first create a `connect_webview`. Once created, this `connect_webview` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.\n\nWhen you create a Connect Webview, specify the desired provider category key in the `provider_category` parameter. Alternately, to specify a list of providers explicitly, use the `accepted_providers` parameter with a list of device provider keys.\n\nTo list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters.', properties: { accepted_capabilities: { description: 'High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.', items: { description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n', enum: [ 'lock', 'thermostat', 'noise_sensor', 'access_control', 'camera', 'speaker', 'pool', ], type: 'string', }, type: 'array', }, accepted_devices: { deprecated: true, items: { type: 'string' }, type: 'array', 'x-deprecated': 'Unused. Will be removed.', 'x-end-of-life': '2026-11-09', 'x-undocumented': 'Unused. Will be removed.', }, accepted_providers: { description: 'List of accepted [provider keys](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).', items: { type: 'string' }, type: 'array', }, any_device_allowed: { deprecated: true, type: 'boolean', 'x-deprecated': 'Unused. Will be removed.', 'x-end-of-life': '2026-11-09', 'x-undocumented': 'Unused. Will be removed.', }, any_provider_allowed: { description: 'Indicates whether any provider is allowed.', type: 'boolean', }, authorized_at: { description: 'Date and time at which the user authorized (through the Connect Webview) the management of their devices.', format: 'date-time', nullable: true, type: 'string', }, automatically_manage_new_devices: { description: 'Indicates whether Seam should [import all new devices](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.', type: 'boolean', }, connect_webview_id: { description: 'ID of the Connect Webview.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the Connect Webview.', format: 'uuid', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the Connect Webview was created.', format: 'date-time', type: 'string', }, custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://www.seam.co/docs/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.', type: 'object', }, custom_redirect_failure_url: { description: 'URL to which the Connect Webview should redirect when an unexpected error occurs.', format: 'uri', nullable: true, type: 'string', }, custom_redirect_url: { description: 'URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.', format: 'uri', nullable: true, type: 'string', }, customer_key: { description: 'The customer key associated with this webview, if any.', type: 'string', }, device_selection_mode: { description: 'Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`.', enum: ['none', 'single', 'multiple'], type: 'string', }, login_successful: { description: 'Indicates whether the user logged in successfully using the Connect Webview.', type: 'boolean', }, selected_provider: { description: 'Selected provider of the Connect Webview, one of the [provider keys](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).', nullable: true, type: 'string', }, status: { description: 'Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.', enum: ['pending', 'failed', 'authorized'], type: 'string', }, url: { description: 'URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.', format: 'uri', type: 'string', }, wait_for_device_creation: { description: 'Indicates whether Seam should [finish syncing all devices](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.', type: 'boolean', }, workspace_id: { description: 'ID of the workspace that contains the Connect Webview.', format: 'uuid', type: 'string', }, }, required: [ 'connect_webview_id', 'workspace_id', 'created_at', 'connected_account_id', 'url', 'device_selection_mode', 'accepted_providers', 'accepted_capabilities', 'accepted_devices', 'any_device_allowed', 'any_provider_allowed', 'login_successful', 'status', 'custom_redirect_url', 'custom_redirect_failure_url', 'custom_metadata', 'automatically_manage_new_devices', 'wait_for_device_creation', 'authorized_at', 'selected_provider', ], type: 'object', 'x-route-path': '/connect_webviews', }, connected_account: { description: 'Represents a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks.', properties: { accepted_capabilities: { description: 'List of capabilities that were accepted during the account connection process.', items: { description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n', enum: [ 'lock', 'thermostat', 'noise_sensor', 'access_control', 'camera', 'speaker', 'pool', ], type: 'string', }, type: 'array', }, account_type: { description: 'Type of connected account.', type: 'string', }, account_type_display_name: { description: 'Display name for the connected account type.', type: 'string', }, automatically_manage_new_devices: { description: 'Indicates whether Seam should [import all new devices](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for management by the Seam API.', type: 'boolean', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the connected account was created.', format: 'date-time', type: 'string', }, custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://www.seam.co/docs/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.', type: 'object', }, customer_key: { description: 'Your unique key for the customer associated with this connected account.', type: 'string', }, default_checkin_time: { description: 'Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration — set during the connect_webview for providers like Lodgify whose API does not expose check-in times.', type: 'string', }, default_checkout_time: { description: 'Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration.', type: 'string', }, display_name: { description: 'Display name for the connected account.', type: 'string', }, errors: { description: 'Errors associated with the connected account.', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, salto_ks_metadata: { description: 'Salto KS metadata associated with the connected account that has an error.', properties: { sites: { description: 'Salto sites associated with the connected account that has an error.', items: { description: 'Salto site associated with the connected account that has an error.', properties: { site_id: { description: 'ID of a Salto site associated with the connected account that has an error.', type: 'string', }, site_name: { description: 'Name of a Salto site associated with the connected account that has an error.', type: 'string', }, site_user_subscription_limit: { description: 'Subscription limit of site users for a Salto site associated with the connected account that has an error.', minimum: 0, type: 'integer', }, subscribed_site_user_count: { description: 'Count of subscribed site users for a Salto site associated with the connected account that has an error.', minimum: 0, type: 'integer', }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, }, required: [ 'created_at', 'message', 'error_code', 'salto_ks_metadata', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', }, ical_feed_origin: { description: "For iCal connected accounts, the platform that produced the feed (for example, `airbnb`, `vrbo`, or `booking`), or `unknown` when it could not be determined. Intended for rendering the source platform's logo.", type: 'string', }, ical_url: { description: 'For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration.', type: 'string', }, image_url: { description: 'Logo URL for the connected account provider.', format: 'uri', type: 'string', }, time_zone: { description: 'IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.', type: 'string', }, user_identifier: { deprecated: true, description: 'User identifier associated with the connected account.', properties: { api_url: { description: 'API URL for the user identifier associated with the connected account.', type: 'string', }, email: { description: 'Email address of the user identifier associated with the connected account.', type: 'string', }, exclusive: { description: 'Indicates whether the user identifier associated with the connected account is exclusive.', type: 'boolean', }, phone: { description: 'Phone number of the user identifier associated with the connected account.', type: 'string', }, username: { description: 'Username of the user identifier associated with the connected account.', type: 'string', }, }, type: 'object', 'x-deprecated': 'Use `display_name` instead.', 'x-end-of-life': '2026-11-09', }, warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the connected account.', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that scheduled downtime is planned for the connected account.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['scheduled_maintenance_window'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that an unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_connected_account'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, salto_ks_metadata: { description: 'Salto KS metadata associated with the connected account that has a warning.', properties: { sites: { description: 'Salto sites associated with the connected account that has a warning.', items: { description: 'Salto site associated with the connected account that has a warning.', properties: { site_id: { description: 'ID of a Salto site associated with the connected account that has a warning.', type: 'string', }, site_name: { description: 'Name of a Salto site associated with the connected account that has a warning.', type: 'string', }, site_user_subscription_limit: { description: 'Subscription limit of site users for a Salto site associated with the connected account that has a warning.', minimum: 0, type: 'integer', }, subscribed_site_user_count: { description: 'Count of subscribed site users for a Salto site associated with the connected account that has a warning.', minimum: 0, type: 'integer', }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_almost_reached'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'salto_ks_metadata', ], type: 'object', }, { description: 'Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['account_reauthorization_requested'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['provider_service_unavailable'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['setup_required'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { deprecated: true, description: 'Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_unapproved'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', 'x-deprecated': 'Seam no longer sets this warning.', 'x-end-of-life': '2026-11-24', }, ], }, type: 'array', }, }, required: [ 'connected_account_id', 'account_type_display_name', 'display_name', 'errors', 'warnings', 'custom_metadata', 'automatically_manage_new_devices', 'accepted_capabilities', ], type: 'object', 'x-route-path': '/connected_accounts', }, customer: { description: 'Represents a customer within a workspace. Customers are used to organize resources and manage access for different clients, such as hotels, property managers, and more.', properties: { created_at: { description: 'Date and time at which the customer was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'Unique key for the customer within the workspace.', type: 'string', }, customization_profile_id: { description: 'ID of the customization profile the customer uses. Access grants that automations create for this customer use this profile. This can differ from the profiles the customer owns.', format: 'uuid', nullable: true, type: 'string', }, low_battery_alert_threshold: { description: "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies.", format: 'float', nullable: true, type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the customer.', format: 'uuid', type: 'string', }, }, required: [ 'customer_key', 'workspace_id', 'created_at', 'customization_profile_id', 'low_battery_alert_threshold', ], type: 'object', 'x-route-path': '/customers', 'x-undocumented': 'Internal resource.', }, customer_portal: { description: "Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.\n\nWith Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.\n\nSeam hosts these flows, handling everything from account connection and device mapping to full-featured device control.", properties: { created_at: { description: 'Date and time at which the customer portal link was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'Customer key for the customer portal.', type: 'string', }, expires_at: { description: 'Date and time at which the customer portal link expires.', format: 'date-time', type: 'string', }, url: { description: 'URL for the customer portal.', format: 'uri', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the customer portal.', format: 'uuid', type: 'string', }, }, required: [ 'url', 'customer_key', 'expires_at', 'workspace_id', 'created_at', ], type: 'object', 'x-route-path': '/customers', }, customization_profile: { description: 'A customization profile.', properties: { created_at: { format: 'date-time', type: 'string' }, customer_key: { description: 'Key of the customer that owns the profile, or `null` for a workspace-level profile. A customer can own a profile without using it; the profile a customer uses is `customization_profile_id` on the customer.', nullable: true, type: 'string', }, customer_portal_features: { description: "Features for customer portals that use this profile. A setting passed when creating the portal takes precedence over the profile's. Changes apply to existing portals the next time they load.", properties: { configure: { description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, customer_portal_theme: { properties: { font_family: { type: 'string' }, mono_font_family: { type: 'string' }, primary_color: { type: 'string' }, primary_foreground_color: { type: 'string' }, secondary_color: { type: 'string' }, secondary_foreground_color: { type: 'string' }, }, type: 'object', }, customization_profile_id: { format: 'uuid', type: 'string' }, instant_key_theme: { description: 'Theme for the Instant Keys apps.', properties: { dark: { additionalProperties: false, description: 'Dark-mode colors, in the same form as `light`. When omitted, dark mode uses the Seam default with your `primary`, `primary_foreground`, and `ring` colors.', properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, font_family: { description: 'Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace.', maxLength: 200, type: 'string', }, key_card_texture: { description: 'Whether the key card shows its default texture over the key card gradient, or the gradient alone.', enum: ['default', 'none'], type: 'string', }, light: { additionalProperties: false, description: "Light-mode colors, named after shadcn/ui's CSS variables in snake_case. Values are CSS colors in hex, `oklch()`, `rgb()`, or `hsl()` form. Colors you omit use the Seam default.", properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, radius: { description: 'Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`.', pattern: '^(?:\\d+\\.?\\d*|\\.\\d+)(?:rem|px)?$', type: 'string', }, }, type: 'object', }, is_workspace_default: { description: "Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile.", type: 'boolean', }, logo_url: { format: 'uri', type: 'string' }, message_overrides: { additionalProperties: { additionalProperties: { type: 'string' }, type: 'object', }, type: 'object', }, name: { nullable: true, type: 'string' }, primary_color: { type: 'string' }, secondary_color: { type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'workspace_id', 'name', 'customization_profile_id', 'customer_key', 'created_at', 'is_workspace_default', ], type: 'object', 'x-route-path': '/workspaces/customization_profiles', 'x-title': 'Customization Profile', 'x-undocumented': 'Unreleased.', }, device: { description: 'Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam.', properties: { air_quality_index: { description: 'Air quality index, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, can_activate_weekly_program: { description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.', type: 'boolean', }, can_configure_auto_lock: { description: 'Indicates whether the lock supports configuring automatic locking.', type: 'boolean', }, can_control_temperature: { description: 'Indicates whether the device supports controlling its primary target temperature.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_hvac_cool: { description: 'Indicates whether the thermostat supports cooling.', type: 'boolean', }, can_hvac_heat: { description: 'Indicates whether the thermostat supports heating.', type: 'boolean', }, can_hvac_heat_cool: { description: 'Indicates whether the thermostat supports simultaneous heating and cooling.', type: 'boolean', }, can_mute_speaker: { description: 'Indicates whether the speaker supports muting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_pause_speaker_playback: { description: 'Indicates whether the speaker supports pausing playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_audio_clip: { description: 'Indicates whether the speaker supports playing an audio clip from a URL.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_chime: { description: 'Indicates whether the speaker supports playing a chime.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_favorite: { description: "Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations.", type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_program_offline_access_codes: { description: 'Indicates whether the device supports programming offline access codes.', type: 'boolean', }, can_program_online_access_codes: { description: 'Indicates whether the device supports programming online access codes.', type: 'boolean', }, can_program_thermostat_programs_as_different_each_day: { description: 'Indicates whether the thermostat supports different climate programs for each day of the week.', type: 'boolean', }, can_program_thermostat_programs_as_same_each_day: { description: 'Indicates whether the thermostat supports a single climate program applied to every day.', type: 'boolean', }, can_program_thermostat_programs_as_weekday_weekend: { description: 'Indicates whether the thermostat supports weekday/weekend climate programs.', type: 'boolean', }, can_remotely_lock: { description: 'Indicates whether the device supports remote locking.', type: 'boolean', }, can_remotely_unlock: { description: 'Indicates whether the device supports remote unlocking.', type: 'boolean', }, can_resume_speaker_playback: { description: 'Indicates whether the speaker supports resuming playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_run_thermostat_programs: { description: 'Indicates whether the thermostat supports running climate programs.', type: 'boolean', }, can_set_speaker_volume: { description: 'Indicates whether the speaker supports setting its volume.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_simulate_connection: { description: 'Indicates whether the device supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_disconnection: { description: 'Indicates whether the device supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_hub_connection: { description: 'Indicates whether the hub supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_hub_disconnection: { description: 'Indicates whether the hub supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_paid_subscription: { description: 'Indicates whether the device supports simulating a paid subscription in a sandbox.', type: 'boolean', }, can_simulate_removal: { description: 'Indicates whether the device supports simulating removal in a sandbox.', type: 'boolean', }, can_stream_live_video: { description: 'Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.', type: 'boolean', }, can_turn_off_hvac: { description: 'Indicates whether the thermostat can be turned off.', type: 'boolean', }, can_unlock_with_code: { description: 'Indicates whether the lock supports unlocking with an access code.', type: 'boolean', }, can_unmute_speaker: { description: 'Indicates whether the speaker supports unmuting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, capabilities_supported: { description: '\n Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).\n ', items: { description: '\n Collection of capabilities that the device supports when connected to Seam. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).\n ', enum: [ 'access_code', 'lock', 'noise_detection', 'thermostat', 'battery', 'phone', 'pool', ], type: 'string', }, type: 'array', }, child_device_ids: { description: 'IDs of the child devices that belong to this device. Only present when the device has at least one child.', items: { format: 'uuid', type: 'string' }, type: 'array', 'x-undocumented': 'Unreleased.', }, co2_ppm: { description: 'Carbon dioxide concentration in parts per million, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, co_ppm: { description: 'Carbon monoxide concentration in parts per million, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, connected_account_id: { description: 'Unique identifier for the account associated with the device.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the device object was created.', format: 'date-time', type: 'string', }, custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://www.seam.co/docs/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.', type: 'object', }, device_id: { description: 'ID of the device.', format: 'uuid', type: 'string', }, device_manufacturer: { description: 'Manufacturer of the device. Represents the hardware brand, which may differ from the provider.', properties: { display_name: { description: 'Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on.', type: 'string', }, image_url: { description: 'Image URL for the manufacturer logo.', format: 'uri', type: 'string', }, manufacturer: { description: 'Manufacturer identifier, such as `august`, `yale`, `salto`, and so on.', type: 'string', }, }, required: ['manufacturer', 'display_name'], type: 'object', 'x-property-group-key': 'hardware', }, device_provider: { description: 'Provider of the device. Represents the third-party service through which the device is controlled.', properties: { device_provider_name: { description: 'Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on.', type: 'string', }, display_name: { description: 'Display name for the device provider type.', type: 'string', }, image_url: { description: 'Image URL for the device provider.', format: 'uri', type: 'string', }, provider_category: { description: 'Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations.', type: 'string', }, }, required: [ 'provider_category', 'device_provider_name', 'display_name', ], type: 'object', 'x-property-group-key': 'hardware', }, device_type: { description: 'Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.', oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, display_name: { description: 'Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.', type: 'string', }, errors: { description: 'Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Salto site user limit has been reached.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { description: "Indicates that the provider's system to which this device belongs is not letting Seam act on it, so Seam cannot manage access codes or unlock the device. The error message says which of three causes applies. Seam's integration user may not have sufficient permissions on the provider's system, or may have been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. The provider account or site may not have a valid subscription with the provider: set up or renew that subscription with the provider. Or the provider may have rejected the credential Seam uses to operate the device's hub: contact Seam support to re-activate it.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { deprecated: true, description: 'Indicates that the device is offline.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_offline'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-deprecated': 'Use `device_disconnected` instead.', 'x-resource-type': 'device', }, { description: 'Indicates that the device has been removed.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_removed'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the hub is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['hub_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the device is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['empty_backup_access_code_pool'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the user is not authorized to use the August lock.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['august_lock_not_authorized'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['low_battery'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: 'Indicates that device credentials are missing.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['missing_device_credentials'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the auxiliary heat is running.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['auxiliary_heat_running'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that a subscription is required to connect.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['subscription_required'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, estimated_occupant_count: { description: 'Estimated number of occupants detected by the device.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, is_casing_tampered_with: { description: 'Indicates whether the device was last reported as having its casing opened or tampered with. Omitted when the provider reports no casing state, including when the device does not support casing tamper detection. This is independent of `is_detached_from_mounting_plate`.', type: 'boolean', 'x-property-group-key': 'hardware', }, is_detached_from_mounting_plate: { description: 'Indicates whether the device was last reported as detached from its mounting plate. Omitted when Seam has no accepted observation, including when the device does not support mounting plate detection, reports an unknown status, or is offline. This is the last accepted provider observation, not a guarantee of current hardware state; check `is_online` before acting on it.', type: 'boolean', 'x-property-group-key': 'hardware', }, is_door_locked: { description: 'Indicates whether the lock is locked.', type: 'boolean', 'x-property-group-key': 'locks', 'x-undocumented': 'Unreleased.', }, is_managed: { description: 'Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).', enum: [true], type: 'boolean', }, is_occupancy_detected: { description: 'Indicates whether the device detects occupancy.', type: 'boolean', 'x-property-group-key': 'sensors', }, is_online: { description: 'Indicates whether the device is online.', type: 'boolean', 'x-property-group-key': 'hardware', }, is_smoking_detected: { description: 'Indicates whether the device detects smoking, if the device measures it.', type: 'boolean', 'x-property-group-key': 'sensors', }, is_spa: { description: 'Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices.', type: 'boolean', 'x-property-group-key': 'pools', 'x-undocumented': 'Unreleased.', }, is_water_circulating: { description: 'Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it.', type: 'boolean', 'x-property-group-key': 'pools', 'x-undocumented': 'Unreleased.', }, location: { description: 'Location information for the device.', properties: { location_name: { description: 'Name of the device location.\n ', type: 'string', }, room_name: { description: 'Name of the room within the device location, when the provider reports one.\n ', type: 'string', }, time_zone: { description: 'Time zone of the device location.\n ', type: 'string', }, timezone: { deprecated: true, description: 'Time zone of the device location.', type: 'string', 'x-deprecated': 'Use `time_zone` instead.', 'x-end-of-life': '2026-11-09', }, }, type: 'object', 'x-property-group-key': 'hardware', }, mold_risk_level: { description: 'Mold risk level as reported by the device, if the device measures it.', type: 'string', 'x-property-group-key': 'sensors', }, named_sensors: { description: 'Additional sensors of the same kind on the device, each with a stable `sensor_name`. Present only when the device has more than one sensor of a kind or no single main sensor.', items: { description: 'A sensor on the device, with the same measurement fields as the device.', properties: { air_quality_index: { description: 'Air quality index, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, co2_ppm: { description: 'Carbon dioxide concentration in parts per million, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, co_ppm: { description: 'Carbon monoxide concentration in parts per million, if the device measures it.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, display_name: { description: 'Display name of the sensor. Defaults to `sensor_name`.', type: 'string', 'x-property-group-key': 'sensors', }, estimated_occupant_count: { description: 'Estimated number of occupants detected by the device.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, is_occupancy_detected: { description: 'Indicates whether the device detects occupancy.', type: 'boolean', 'x-property-group-key': 'sensors', }, is_smoking_detected: { description: 'Indicates whether the device detects smoking, if the device measures it.', type: 'boolean', 'x-property-group-key': 'sensors', }, mold_risk_level: { description: 'Mold risk level as reported by the device, if the device measures it.', type: 'string', 'x-property-group-key': 'sensors', }, noise_level_decibels: { description: 'Noise level in decibels, if the device measures noise.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, noise_level_nrs: { description: 'Noise level as a Noise Risk Score (NRS), if the device reports one.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, relative_humidity: { description: 'Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-property-group-key': 'sensors', }, sensor_name: { description: 'Stable, hardware-defined name of the sensor, such as a port number.', type: 'string', 'x-property-group-key': 'sensors', }, temperature_celsius: { description: 'Temperature in °C, if the device measures temperature.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, temperature_fahrenheit: { description: 'Temperature in °F, if the device measures temperature.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, }, required: ['sensor_name', 'display_name'], type: 'object', 'x-property-groups': { sensors: { name: 'Sensors' } }, }, type: 'array', 'x-property-group-key': 'sensors', }, nickname: { description: 'Optional nickname to describe the device, settable through Seam.', type: 'string', }, noise_level_decibels: { description: 'Noise level in decibels, if the device measures noise.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, noise_level_nrs: { description: 'Noise level as a Noise Risk Score (NRS), if the device reports one.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, parent_device_id: { description: 'ID of the parent device that this device belongs to, such as the pool controller of a pool or spa body of water. Omitted if the device does not have a parent.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, properties: { allOf: [ { allOf: [ { allOf: [ { properties: { accessory_keypad: { description: 'Accessory keypad properties and state.', properties: { battery: { description: 'Keypad battery properties.\n ', properties: { level: { format: 'float', maximum: 1, minimum: 0, type: 'number', }, }, required: ['level'], type: 'object', }, is_connected: { description: 'Indicates if an accessory keypad is connected to the device.\n ', type: 'boolean', }, }, required: ['is_connected'], type: 'object', 'x-property-group-key': 'hardware', }, appearance: { description: 'Appearance-related properties, as reported by the device.', properties: { name: { description: 'Name of the device as seen from the provider API and application, not settable through Seam.', type: 'string', }, }, required: ['name'], type: 'object', 'x-property-group-key': 'hardware', }, battery: { description: 'Represents the current status of the battery charge level.', properties: { level: { description: 'Battery charge level as a value between 0 and 1, inclusive.\n ', format: 'float', maximum: 1, minimum: 0, type: 'number', }, status: { description: 'Represents the current status of the battery charge level. Values are `critical`, which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; `low`, which signifies that the battery is under the preferred threshold and should be charged soon; `good`, which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and `full`, which represents a battery that is fully charged, providing the maximum duration of usage.\n ', enum: ['critical', 'low', 'good', 'full'], type: 'string', }, }, required: ['level', 'status'], type: 'object', 'x-property-group-key': 'hardware', }, battery_level: { description: 'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-property-group-key': 'hardware', }, currently_triggering_noise_threshold_ids: { description: 'Array of noise threshold IDs that are currently triggering.', items: { type: 'string' }, type: 'array', 'x-property-group-key': 'noise_sensors', }, has_direct_power: { description: 'Indicates whether the device has direct power.', type: 'boolean', 'x-property-group-key': 'hardware', }, image_alt_text: { description: 'Alt text for the device image.', type: 'string', 'x-property-group-key': 'hardware', }, image_url: { description: 'Image URL for the device.', format: 'uri', type: 'string', 'x-property-group-key': 'hardware', }, manufacturer: { description: 'Manufacturer of the device. When a device, such as a smart lock, is connected through a smart hub, the manufacturer of the device might be different from that of the smart hub.', type: 'string', 'x-property-group-key': 'hardware', }, model: { description: 'Device model-related properties.', properties: { accessory_keypad_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.properties.model.can_connect_accessory_keypad', 'x-end-of-life': '2026-11-09', }, can_connect_accessory_keypad: { description: '\n Indicates whether the device can connect a accessory keypad.\n ', type: 'boolean', }, display_name: { description: '\n Display name of the device model.\n ', type: 'string', }, has_built_in_keypad: { description: '\n Indicates whether the device has a built in accessory keypad.\n ', type: 'boolean', }, manufacturer_display_name: { description: '\n Display name that corresponds to the manufacturer-specific terminology for the device.\n ', type: 'string', }, offline_access_codes_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.can_program_offline_access_codes.', 'x-end-of-life': '2026-11-09', }, online_access_codes_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.can_program_online_access_codes.', 'x-end-of-life': '2026-11-09', }, }, required: [ 'display_name', 'manufacturer_display_name', ], type: 'object', }, name: { deprecated: true, description: 'Name of the device.', type: 'string', 'x-deprecated': 'use device.display_name instead', }, noise_level_decibels: { description: 'Indicates current noise level in decibels, if the device supports noise detection.', format: 'float', type: 'number', 'x-property-group-key': 'noise_sensors', }, offline_access_codes_enabled: { deprecated: true, description: 'Indicates whether it is currently possible to use offline access codes for the device.', type: 'boolean', 'x-deprecated': 'use device.can_program_offline_access_codes', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, online: { description: 'Indicates whether the device is online.', type: 'boolean', }, online_access_codes_enabled: { deprecated: true, description: 'Indicates whether it is currently possible to use online access codes for the device.', type: 'boolean', 'x-deprecated': 'use device.can_program_online_access_codes', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, serial_number: { description: 'Serial number of the device.', type: 'string', 'x-property-group-key': 'hardware', }, supports_accessory_keypad: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.properties.model.can_connect_accessory_keypad', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, supports_offline_access_codes: { deprecated: true, type: 'boolean', 'x-deprecated': 'use offline_access_codes_enabled', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, }, required: ['online', 'name', 'appearance', 'model'], type: 'object', }, { description: '\n Properties of the phone.\n ', properties: { assa_abloy_credential_service_metadata: { description: 'ASSA ABLOY Credential Service metadata for the phone.', properties: { endpoints: { description: 'Endpoints associated with the phone.', items: { properties: { endpoint_id: { description: 'ID of the associated endpoint.', type: 'string', }, is_active: { description: 'Indicated whether the endpoint is active.', type: 'boolean', }, }, type: 'object', }, type: 'array', }, has_active_endpoint: { description: 'Indicates whether the credential service has active endpoints associated with the phone.', type: 'boolean', }, }, type: 'object', }, salto_space_credential_service_metadata: { description: 'Salto Space credential service metadata for the phone.', properties: { has_active_phone: { description: 'Indicates whether the credential service has an active associated phone.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, ], }, { description: 'Provider-specific metadata.', properties: { akiles_metadata: { description: 'Metadata for an Akiles device.', properties: { gadget_id: { description: 'Gadget ID for an Akiles device.', type: 'string', }, gadget_name: { description: 'Gadget name for an Akiles device.', type: 'string', }, product_name: { description: 'Product name for an Akiles device.', type: 'string', }, }, type: 'object', }, alertify_metadata: { description: 'Metadata for an Alertify sensor.', properties: { building_id: { description: 'ID of the Alertify building that contains the unit.', nullable: true, type: 'string', }, device_id: { description: 'Device ID reported by Alertify.', type: 'string', }, device_name: { description: 'Device name, as set in the Alertify dashboard.', type: 'string', }, unit_id: { description: 'ID of the Alertify unit where the device is installed.', type: 'string', }, unit_name: { description: 'Name of the Alertify unit where the device is installed.', type: 'string', }, }, type: 'object', 'x-undocumented': 'Unreleased.', }, aqara_metadata: { description: 'Metadata for an Aqara device.', properties: { device_name: { description: 'Device name for an Aqara device.', type: 'string', }, did: { description: 'Device ID (did) for an Aqara device.', type: 'string', }, firmware_version: { description: 'Firmware version for an Aqara device.', nullable: true, type: 'string', }, model: { description: 'Model identifier for an Aqara device.', type: 'string', }, model_type: { description: 'Model type for an Aqara device.', format: 'float', type: 'number', }, parent_did: { description: 'Parent gateway device ID for an Aqara device.', type: 'string', }, position_id: { description: 'Position (room) ID for an Aqara device.', nullable: true, type: 'string', }, time_zone: { description: 'Time zone reported for an Aqara device (e.g. GMT-07:00).', nullable: true, type: 'string', }, }, type: 'object', }, arlo_metadata: { description: 'Metadata for an Arlo camera.', properties: { device_id: { description: 'Device ID reported by Arlo.', type: 'string', }, device_name: { description: 'Device name reported by Arlo.', type: 'string', }, firmware_version: { description: 'Firmware version reported by Arlo.', type: 'string', }, hardware_version: { description: 'Hardware version reported by Arlo.', type: 'string', }, model_id: { description: 'Model ID reported by Arlo.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Metadata for an ASSA ABLOY Vostio system.', properties: { encoder_name: { description: 'Encoder name for an ASSA ABLOY Vostio system.', type: 'string', }, }, type: 'object', }, august_metadata: { description: 'Metadata for an August device.', properties: { has_keypad: { description: 'Indicates whether an August device has a keypad.', type: 'boolean', }, house_id: { description: 'House ID for an August device.', type: 'string', }, house_name: { description: 'House name for an August device.', type: 'string', }, keypad_battery_level: { description: 'Keypad battery level for an August device.', type: 'string', }, lock_id: { description: 'Lock ID for an August device.', type: 'string', }, lock_name: { description: 'Lock name for an August device.', type: 'string', }, model: { description: 'Model for an August device.', type: 'string', }, }, type: 'object', }, avigilon_alta_metadata: { description: 'Metadata for an Avigilon Alta system.', properties: { entry_name: { description: 'Entry name for an Avigilon Alta system.', type: 'string', }, entry_relays_total_count: { description: 'Total count of entry relays for an Avigilon Alta system.', format: 'float', type: 'number', }, org_name: { description: 'Organization name for an Avigilon Alta system.', type: 'string', }, site_id: { description: 'Site ID for an Avigilon Alta system.', format: 'float', type: 'number', }, site_name: { description: 'Site name for an Avigilon Alta system.', type: 'string', }, zone_id: { description: 'Zone ID for an Avigilon Alta system.', format: 'float', type: 'number', }, zone_name: { description: 'Zone name for an Avigilon Alta system.', type: 'string', }, }, type: 'object', }, brivo_metadata: { description: 'Metadata for a Brivo device.', properties: { activation_enabled: { description: 'Indicates whether the Brivo access point has activation (remote unlock) enabled.', type: 'boolean', }, device_name: { description: 'Device name for a Brivo device.', type: 'string', }, }, type: 'object', }, cielo_metadata: { description: 'Metadata for a Cielo device.', properties: { appliance_id: { description: 'ID of the air conditioner or heat pump model that the Cielo device is set up to control.', type: 'string', }, cielo_device_type: { description: 'Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat.', type: 'string', }, device_name: { description: 'Name of the device in the Cielo Home app.', type: 'string', }, mac_address: { description: 'MAC address of the Cielo device.', type: 'string', }, temperature_unit: { description: 'Temperature unit that the Cielo device displays: `C` or `F`.', type: 'string', }, }, type: 'object', }, controlbyweb_metadata: { description: 'Metadata for a ControlByWeb device.', properties: { device_id: { description: 'Device ID for a ControlByWeb device.', type: 'string', }, device_name: { description: 'Device name for a ControlByWeb device.', type: 'string', }, relay_name: { description: 'Relay name for a ControlByWeb device.', nullable: true, type: 'string', }, }, type: 'object', }, dormakaba_oracode_iho_metadata: { description: "Metadata for a dormakaba Oracode Homeowner's Portal device.", properties: { door_id: { description: "Door ID for a dormakaba Oracode Homeowner's Portal device.", format: 'float', type: 'number', }, door_name: { description: "Name of the door for a dormakaba Oracode Homeowner's Portal device.", type: 'string', }, iana_timezone: { description: "IANA time zone for a dormakaba Oracode Homeowner's Portal device.", type: 'string', }, user_levels: { description: "User levels for a dormakaba Oracode Homeowner's Portal device.", items: { properties: { user_level: { format: 'float', type: 'number' }, user_level_check_in_time: { type: 'string' }, user_level_check_out_time: { type: 'string' }, user_level_name: { type: 'string' }, user_level_type: { type: 'string' }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, dormakaba_oracode_metadata: { description: 'Metadata for a dormakaba Oracode device.', properties: { device_id: { description: 'Device ID for a dormakaba Oracode device.', oneOf: [ { format: 'float', type: 'number' }, { type: 'string' }, ], }, door_id: { description: 'Door ID for a dormakaba Oracode device.', format: 'float', type: 'number', }, door_is_wireless: { description: 'Indicates whether a door is wireless for a dormakaba Oracode device.', type: 'boolean', }, door_name: { description: 'Door name for a dormakaba Oracode device.', type: 'string', }, iana_timezone: { description: 'IANA time zone for a dormakaba Oracode device.', type: 'string', }, predefined_time_slots: { description: 'Predefined time slots for a dormakaba Oracode device.', items: { description: 'Time slot for a dormakaba Oracode device.', properties: { check_in_time: { description: 'Check in time for a time slot for a dormakaba Oracode device.', type: 'string', }, check_out_time: { description: 'Checkout time for a time slot for a dormakaba Oracode device.', type: 'string', }, dormakaba_oracode_user_level_id: { description: 'ID of a user level for a dormakaba Oracode device.', format: 'uuid', type: 'string', }, dormakaba_oracode_user_level_prefix: { description: 'Prefix for a user level for a dormakaba Oracode device.', format: 'float', type: 'number', }, is_24_hour: { description: 'Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot.', type: 'boolean', }, is_biweekly_mode: { description: 'Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode.', type: 'boolean', }, is_master: { description: 'Indicates whether a time slot for a dormakaba Oracode device is a master time slot.', type: 'boolean', }, is_one_shot: { description: 'Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot.', type: 'boolean', }, name: { description: 'Name of a time slot for a dormakaba Oracode device.', type: 'string', }, prefix: { description: 'Prefix for a time slot for a dormakaba Oracode device.', format: 'float', type: 'number', }, }, type: 'object', }, type: 'array', }, site_id: { deprecated: true, description: 'Site ID for a dormakaba Oracode device.', format: 'float', nullable: true, type: 'number', 'x-deprecated': 'Previously marked as "@DEPRECATED."', 'x-end-of-life': '2026-11-09', }, site_name: { description: 'Site name for a dormakaba Oracode device.', type: 'string', }, }, type: 'object', }, ecobee_metadata: { description: 'Metadata for an ecobee device.', properties: { device_name: { description: 'Device name for an ecobee device.', type: 'string', }, ecobee_device_id: { description: 'Device ID for an ecobee device.', type: 'string', }, }, type: 'object', }, eufy_metadata: { description: 'Metadata for a Eufy device.', properties: { device_id: { type: 'string' }, device_name: { type: 'string' }, model: { type: 'string' }, }, type: 'object', }, four_suites_metadata: { description: 'Metadata for a 4SUITES device.', properties: { device_id: { description: 'Device ID for a 4SUITES device.', format: 'float', type: 'number', }, device_name: { description: 'Device name for a 4SUITES device.', type: 'string', }, reclose_delay_in_seconds: { description: 'Reclose delay, in seconds, for a 4SUITES device.', format: 'float', type: 'number', }, }, type: 'object', }, genie_metadata: { description: 'Metadata for a Genie device.', properties: { device_name: { description: 'Lock name for a Genie device.', type: 'string', }, door_name: { description: 'Door name for a Genie device.', type: 'string', }, }, type: 'object', }, hayward_omnilogic_metadata: { description: 'Metadata for a Hayward OmniLogic pool controller, pool, or spa.', properties: { backyard_name: { description: 'Name of the controller, as set in the Hayward OmniLogic app.', type: 'string', }, msp_system_id: { description: 'ID of the Hayward OmniLogic controller that the device belongs to.', type: 'string', }, system_id: { description: 'ID of the pool or spa within its controller. Only present on a pool or spa.', type: 'string', }, system_name: { description: 'Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa.', type: 'string', }, }, type: 'object', 'x-undocumented': 'Unreleased.', }, honeywell_resideo_metadata: { description: 'Metadata for a Honeywell Resideo device.', properties: { device_name: { description: 'Device name for a Honeywell Resideo device.', type: 'string', }, honeywell_resideo_device_id: { description: 'Device ID for a Honeywell Resideo device.', type: 'string', }, }, type: 'object', }, igloo_metadata: { description: 'Metadata for an igloo device.', properties: { bridge_id: { description: 'Bridge ID for an igloo device.', type: 'string', }, device_id: { description: 'Device ID for an igloo device.', type: 'string', }, model: { description: 'Model for an igloo device.', type: 'string', }, }, type: 'object', }, igloohome_metadata: { description: 'Metadata for an igloohome device.', properties: { bridge_id: { description: 'Bridge ID for an igloohome device.', type: 'string', }, bridge_name: { description: 'Bridge name for an igloohome device.', type: 'string', }, device_id: { description: 'Device ID for an igloohome device.', type: 'string', }, device_name: { description: 'Device name for an igloohome device.', type: 'string', }, is_accessory_keypad_linked_to_bridge: { description: 'Indicates whether a keypad is linked to a bridge for an igloohome device.', type: 'boolean', }, keypad_id: { description: 'Keypad ID for an igloohome device.', type: 'string', }, }, type: 'object', }, jandy_iaqualink_metadata: { description: 'Metadata for a Jandy iAquaLink pool controller, pool, or spa.', properties: { serial_number: { description: 'Serial number of the Jandy iAquaLink controller that the device belongs to.', type: 'string', }, system_name: { description: 'Name of the controller, as set in the Jandy iAquaLink app.', type: 'string', }, }, type: 'object', 'x-undocumented': 'Unreleased.', }, keynest_metadata: { description: 'Metadata for a KeyNest device.', properties: { address: { description: 'Address for a KeyNest device.', nullable: true, type: 'string', }, current_or_last_store_id: { description: 'Current or last store ID for a KeyNest device.', format: 'float', type: 'number', }, current_status: { description: 'Current status for a KeyNest device.', nullable: true, type: 'string', }, current_user_company: { description: 'Current user company for a KeyNest device.', nullable: true, type: 'string', }, current_user_email: { description: 'Current user email for a KeyNest device.', nullable: true, type: 'string', }, current_user_name: { description: 'Current user name for a KeyNest device.', nullable: true, type: 'string', }, current_user_phone_number: { description: 'Current user phone number for a KeyNest device.', nullable: true, type: 'string', }, default_office_id: { description: 'Default office ID for a KeyNest device.', format: 'float', type: 'number', }, device_name: { description: 'Device name for a KeyNest device.', type: 'string', }, fob_id: { description: 'Fob ID for a KeyNest device.', format: 'float', type: 'number', }, handover_method: { description: 'Handover method for a KeyNest device.', nullable: true, type: 'string', }, has_photo: { description: 'Whether the KeyNest device has a photo.', type: 'boolean', }, is_quadient_locker: { description: 'Whether the key is in a locker that does not support the access codes API.', type: 'boolean', }, key_id: { description: 'Key ID for a KeyNest device.', type: 'string', }, key_notes: { description: 'Key notes for a KeyNest device.', nullable: true, type: 'string', }, keynest_app_user: { description: 'KeyNest app user for a KeyNest device.', nullable: true, type: 'string', }, last_movement: { description: 'Last movement timestamp for a KeyNest device.', type: 'string', }, property_id: { description: 'Property ID for a KeyNest device.', nullable: true, type: 'string', }, property_postcode: { description: 'Property postcode for a KeyNest device.', nullable: true, type: 'string', }, status_type: { description: 'Status type for a KeyNest device.', type: 'string', }, subscription_plan: { description: 'Subscription plan for a KeyNest device.', type: 'string', }, }, type: 'object', }, kisi_metadata: { description: 'Metadata for a Kisi device.', properties: { description: { description: 'Description for a Kisi device.', nullable: true, type: 'string', }, lock_id: { description: 'Lock ID for a Kisi device.', format: 'float', type: 'number', }, lock_name: { description: 'Lock name for a Kisi device.', type: 'string', }, place_name: { description: 'Place name for a Kisi device.', nullable: true, type: 'string', }, }, type: 'object', }, korelock_metadata: { description: 'Metadata for a Korelock device.', properties: { device_id: { description: 'Device ID for a Korelock device.', type: 'string', }, device_name: { description: 'Device name for a Korelock device.', type: 'string', }, firmware_version: { description: 'Firmware version for a Korelock device.', type: 'string', }, location_id: { description: 'Location ID for a Korelock device. Required for timebound access codes.', nullable: true, type: 'string', }, model_code: { description: 'Model code for a Korelock device.', type: 'string', }, serial_number: { description: 'Serial number for a Korelock device.', type: 'string', }, wifi_signal_strength: { description: 'WiFi signal strength (0-1) for a Korelock device.', format: 'float', type: 'number', }, }, type: 'object', }, kwikset_metadata: { description: 'Metadata for a Kwikset device.', properties: { device_id: { description: 'Device ID for a Kwikset device.', type: 'string', }, device_name: { description: 'Device name for a Kwikset device.', type: 'string', }, model_number: { description: 'Model number for a Kwikset device.', type: 'string', }, }, type: 'object', }, lockly_metadata: { description: 'Metadata for a Lockly device.', properties: { device_id: { description: 'Device ID for a Lockly device.', type: 'string', }, device_name: { description: 'Device name for a Lockly device.', type: 'string', }, model: { description: 'Model for a Lockly device.', type: 'string', }, }, type: 'object', }, minut_metadata: { description: 'Metadata for a Minut device.', properties: { device_id: { description: 'Device ID for a Minut device.', type: 'string', }, device_name: { description: 'Device name for a Minut device.', type: 'string', }, latest_sensor_values: { description: 'Latest sensor values for a Minut device.', properties: { accelerometer_z: { description: 'Latest accelerometer Z-axis reading for a Minut device.', properties: { time: { description: 'Time of latest accelerometer Z-axis reading for a Minut device.', type: 'string', }, value: { description: 'Value of latest accelerometer Z-axis reading for a Minut device.', format: 'float', type: 'number', }, }, type: 'object', }, humidity: { description: 'Latest humidity reading for a Minut device.', properties: { time: { description: 'Time of latest humidity reading for a Minut device.', type: 'string', }, value: { description: 'Value of latest humidity reading for a Minut device.', format: 'float', type: 'number', }, }, type: 'object', }, pressure: { description: 'Latest pressure reading for a Minut device.', properties: { time: { description: 'Time of latest pressure reading for a Minut device.', type: 'string', }, value: { description: 'Value of latest pressure reading for a Minut device.', format: 'float', type: 'number', }, }, type: 'object', }, sound: { description: 'Latest sound reading for a Minut device.', properties: { time: { description: 'Time of latest sound reading for a Minut device.', type: 'string', }, value: { description: 'Value of latest sound reading for a Minut device.', format: 'float', type: 'number', }, }, type: 'object', }, temperature: { description: 'Latest temperature reading for a Minut device.', properties: { time: { description: 'Time of latest temperature reading for a Minut device.', type: 'string', }, value: { description: 'Value of latest temperature reading for a Minut device.', format: 'float', type: 'number', }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, nest_metadata: { description: 'Metadata for a Google Nest device.', properties: { device_custom_name: { description: 'Custom device name for a Google Nest device. The device owner sets this value.', type: 'string', }, device_name: { description: 'Device name for a Google Nest device. Google sets this value.', type: 'string', }, display_name: { description: 'Name of the Google Home room containing the device. The device owner sets this value.', type: 'string', }, nest_device_id: { description: 'Device ID for a Google Nest device.', type: 'string', }, nest_structure_id: { description: 'ID of the Google Nest structure containing the device.', type: 'string', }, structure_name: { description: 'Name of the Google Nest structure containing the device. The device owner sets this value.', type: 'string', }, }, type: 'object', }, noiseaware_metadata: { description: 'Metadata for a NoiseAware device.', properties: { device_id: { description: 'Device ID for a NoiseAware device.', type: 'string', }, device_model: { description: 'Device model for a NoiseAware device.', enum: ['indoor', 'outdoor'], type: 'string', }, device_name: { description: 'Device name for a NoiseAware device.', type: 'string', }, noise_level_decibel: { description: 'Noise level, in decibels, for a NoiseAware device.', format: 'float', type: 'number', }, noise_level_nrs: { description: 'Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device.', format: 'float', type: 'number', }, }, type: 'object', }, nuki_metadata: { description: 'Metadata for a Nuki device.', properties: { device_id: { description: 'Device ID for a Nuki device.', type: 'string', }, device_name: { description: 'Device name for a Nuki device.', type: 'string', }, keypad_2_paired: { description: 'Indicates whether keypad 2 is paired for a Nuki device.', type: 'boolean', }, keypad_battery_critical: { description: 'Indicates whether the keypad battery is in a critical state for a Nuki device.', type: 'boolean', }, keypad_paired: { description: 'Indicates whether the keypad is paired for a Nuki device.', type: 'boolean', }, }, type: 'object', }, omnitec_metadata: { description: 'Metadata for an Omnitec device.', properties: { has_gateway: { description: 'Whether the Omnitec lock has a connected gateway for remote operations.', type: 'boolean', }, lock_alias: { description: 'Operator-assigned alias for an Omnitec device.', type: 'string', }, lock_id: { description: 'Lock ID for an Omnitec device.', format: 'float', type: 'number', }, lock_mac: { description: 'Bluetooth MAC address for an Omnitec device.', type: 'string', }, lock_name: { description: 'Lock name for an Omnitec device.', type: 'string', }, time_zone: { description: 'IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST).', nullable: true, type: 'string', }, timezone_raw_offset_ms: { description: 'Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST.', format: 'float', type: 'number', }, }, type: 'object', }, reolink_metadata: { description: 'Metadata for a Reolink camera.', properties: { firmware_version: { description: 'Firmware version reported by the camera.', type: 'string', }, hardware_version: { description: 'Hardware version reported by the camera.', type: 'string', }, model: { description: 'Model reported by the Reolink camera.', type: 'string', }, }, type: 'object', }, ring_metadata: { description: 'Metadata for a Ring device.', properties: { device_id: { description: 'Device ID for a Ring device.', type: 'string', }, device_name: { description: 'Device name for a Ring device.', type: 'string', }, }, type: 'object', }, salto_ks_metadata: { description: 'Metadata for a Salto KS device.', properties: { battery_level: { description: 'Battery level for a Salto KS device.', type: 'string', }, customer_reference: { description: 'Customer reference for a Salto KS device.', type: 'string', }, has_custom_pin_subscription: { description: 'Indicates whether the site has a Salto KS subscription that supports custom PINs.', type: 'boolean', }, lock_id: { description: 'Lock ID for a Salto KS device.', type: 'string', }, lock_type: { description: 'Lock type for a Salto KS device.', type: 'string', }, locked_state: { description: 'Locked state for a Salto KS device.', type: 'string', }, model: { description: 'Model for a Salto KS device.', type: 'string', }, site_id: { description: 'Site ID for the Salto KS site to which the device belongs.', type: 'string', }, site_name: { description: 'Site name for the Salto KS site to which the device belongs.', type: 'string', }, }, type: 'object', }, salto_metadata: { deprecated: true, description: 'Metada for a Salto device.', properties: { battery_level: { description: 'Battery level for a Salto device.', type: 'string', }, customer_reference: { description: 'Customer reference for a Salto device.', type: 'string', }, lock_id: { description: 'Lock ID for a Salto device.', type: 'string', }, lock_type: { description: 'Lock type for a Salto device.', type: 'string', }, locked_state: { description: 'Locked state for a Salto device.', type: 'string', }, model: { description: 'Model for a Salto device.', type: 'string', }, site_id: { description: 'Site ID for the Salto KS site to which the device belongs.', type: 'string', }, site_name: { description: 'Site name for the Salto KS site to which the device belongs.', type: 'string', }, }, type: 'object', 'x-deprecated': 'Use `salto_ks_metadata` instead.', 'x-end-of-life': '2026-11-09', }, schlage_metadata: { description: 'Metadata for a Schlage device.', properties: { device_id: { description: 'Device ID for a Schlage device.', type: 'string', }, device_name: { description: 'Device name for a Schlage device.', type: 'string', }, model: { description: 'Model for a Schlage device.', type: 'string', }, }, type: 'object', }, seam_bridge_metadata: { description: 'Metadata for Seam Bridge.', properties: { device_num: { description: 'Device number for Seam Bridge.', format: 'float', type: 'number', }, name: { description: 'Name for Seam Bridge.', type: 'string', }, unlock_method: { description: 'Unlock method for Seam Bridge.', enum: ['bridge', 'doorking'], type: 'string', }, }, type: 'object', }, sensi_metadata: { description: 'Metadata for a Sensi device.', properties: { device_id: { description: 'Device ID for a Sensi device.', type: 'string', }, device_name: { description: 'Device name for a Sensi device.', type: 'string', }, dual_setpoints_not_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'Seam no longer sets this field.', 'x-end-of-life': '2026-11-09', }, product_type: { description: 'Product type for a Sensi device.', type: 'string', }, }, type: 'object', }, sensibo_metadata: { description: 'Metadata for a Sensibo device.', properties: { firmware_version: { description: 'Firmware version of the Sensibo device.', type: 'string', }, mac_address: { description: 'MAC address of the Sensibo device.', type: 'string', }, pod_id: { description: 'ID of the Sensibo device, which Sensibo calls a pod.', type: 'string', }, product_model: { description: 'Product model of the Sensibo device, such as `skyv2` or `skyplus`.', type: 'string', }, product_name: { description: 'Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`.', type: 'string', }, room_name: { description: 'Name of the room that the Sensibo device is in.', type: 'string', }, serial_number: { description: 'Serial number of the Sensibo device.', type: 'string', }, temperature_unit: { description: 'Temperature unit that the Sensibo device displays: `C` or `F`.', type: 'string', }, }, type: 'object', }, smartthings_metadata: { description: 'Metadata for a SmartThings device.', properties: { device_id: { description: 'Device ID for a SmartThings device.', type: 'string', }, device_name: { description: 'Device name for a SmartThings device.', type: 'string', }, location_id: { description: 'Location ID for a SmartThings device.', type: 'string', }, model: { description: 'Model for a SmartThings device.', type: 'string', }, }, type: 'object', }, sonos_metadata: { description: 'Metadata for a Sonos speaker.', properties: { bonded_member_models: { description: 'Models of the speakers bonded to this speaker, such as surrounds or a subwoofer.', items: { type: 'string' }, type: 'array', }, color: { description: 'Color of the speaker, as reported by Sonos.', type: 'string', }, household_id: { description: 'ID of the Sonos household that the speaker belongs to.', type: 'string', }, model_display_name: { description: 'Model name of the speaker, as reported by Sonos.', type: 'string', }, player_id: { description: 'ID of the Sonos player for the speaker.', type: 'string', }, player_name: { description: 'Name of the speaker, as set in the Sonos app.', type: 'string', }, software_version: { description: 'Software version running on the speaker.', type: 'string', }, }, type: 'object', 'x-undocumented': 'Unreleased.', }, tado_metadata: { description: 'Metadata for a tado° device.', properties: { device_serial_numbers: { description: 'Serial numbers of all tado° devices in the zone.', items: { type: 'string' }, type: 'array', }, device_type: { description: 'Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`.', type: 'string', }, home_generation: { description: 'Generation of the tado° home, such as `PRE_LINE_X`.', type: 'string', }, home_id: { description: 'ID of the tado° home.', type: 'string', }, home_name: { description: 'Name of the tado° home.', type: 'string', }, serial_no: { description: 'Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control.', type: 'string', }, zone_id: { description: 'ID of the tado° zone within its home.', type: 'string', }, zone_name: { description: 'Name of the tado° zone.', type: 'string', }, zone_type: { description: 'Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`.', type: 'string', }, }, type: 'object', }, tapo_metadata: { description: 'Metadata for a Tapo camera.', properties: { firmware_version: { description: 'Firmware version reported by the camera.', type: 'string', }, hardware_version: { description: 'Hardware version reported by the camera.', type: 'string', }, model: { description: 'Model reported by the Tapo camera.', type: 'string', }, }, type: 'object', }, tedee_metadata: { description: 'Metadata for a Tedee device.', properties: { bridge_id: { description: 'Bridge ID for a Tedee device.', format: 'float', type: 'number', }, bridge_name: { description: 'Bridge name for a Tedee device.', type: 'string', }, device_id: { description: 'Device ID for a Tedee device.', format: 'float', type: 'number', }, device_model: { description: 'Device model for a Tedee device.', type: 'string', }, device_name: { description: 'Device name for a Tedee device.', type: 'string', }, keypad_id: { description: 'Keypad ID for a Tedee device.', format: 'float', type: 'number', }, serial_number: { description: 'Serial number for a Tedee device.', type: 'string', }, }, type: 'object', }, ttlock_metadata: { description: 'Metadata for a TTLock device.', properties: { feature_value: { description: 'Feature value for a TTLock device.', type: 'string', }, features: { description: 'Features for a TTLock device.', properties: { auto_lock_time_config: { description: 'Indicates whether a TTLock device supports auto-lock time configuration.', type: 'boolean', }, incomplete_keyboard_passcode: { description: 'Indicates whether a TTLock device supports an incomplete keyboard passcode.', type: 'boolean', }, lock_command: { description: 'Indicates whether a TTLock device supports the lock command.', type: 'boolean', }, passcode: { description: 'Indicates whether a TTLock device supports a passcode.', type: 'boolean', }, passcode_management: { description: 'Indicates whether a TTLock device supports passcode management.', type: 'boolean', }, unlock_via_gateway: { description: 'Indicates whether a TTLock device supports unlock via gateway.', type: 'boolean', }, wifi: { description: 'Indicates whether a TTLock device supports Wi-Fi.', type: 'boolean', }, }, type: 'object', }, has_gateway: { description: 'Indicates whether a TTLock device has a gateway.', type: 'boolean', }, lock_alias: { description: 'Lock alias for a TTLock device.', type: 'string', }, lock_id: { description: 'Lock ID for a TTLock device.', format: 'float', type: 'number', }, timezone_raw_offset_ms: { description: 'Lock-side timezone offset in milliseconds east of UTC, as configured in the TTLock app. Source of truth for the lock\'s wall-clock interpretation of access code start/end times — a misconfigured value here is the typical cause of customer "codes offset by N hours" reports. Diagnostic only; Seam does not convert times based on this value.', format: 'float', nullable: true, type: 'number', }, wireless_keypads: { description: 'Wireless keypads for a TTLock device.', items: { properties: { wireless_keypad_id: { description: 'ID for a wireless keypad for a TTLock device.', format: 'float', type: 'number', }, wireless_keypad_name: { description: 'Name for a wireless keypad for a TTLock device.', type: 'string', }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, tuya_metadata: { description: 'Metadata for a Tuya device.', properties: { category: { description: 'Tuya product category code for the device (e.g. ms).', type: 'string', }, device_id: { description: 'Device ID for a Tuya device.', type: 'string', }, device_name: { description: 'Device name for a Tuya device.', type: 'string', }, model: { description: 'Model reported for a Tuya device.', nullable: true, type: 'string', }, product_id: { description: 'Tuya product ID for the device.', type: 'string', }, product_name: { description: 'Tuya product name for the device.', type: 'string', }, time_zone: { description: 'Time zone reported for a Tuya device (e.g. +08:00).', nullable: true, type: 'string', }, }, type: 'object', }, two_n_metadata: { description: 'Metadata for a 2N device.', properties: { device_id: { description: 'Device ID for a 2N device.', format: 'float', type: 'number', }, device_name: { description: 'Device name for a 2N device.', type: 'string', }, }, type: 'object', }, ultraloq_metadata: { description: 'Metadata for an Ultraloq device.', properties: { device_id: { description: 'Device ID for an Ultraloq device.', type: 'string', }, device_name: { description: 'Device name for an Ultraloq device.', type: 'string', }, device_type: { description: 'Device type for an Ultraloq device.', type: 'string', }, time_zone: { description: 'IANA timezone for the Ultraloq device.', nullable: true, type: 'string', }, }, type: 'object', }, unifi_protect_metadata: { description: 'Metadata for a UniFi Protect camera.', properties: { camera_id: { description: 'Camera ID reported by UniFi Protect.', type: 'string', }, camera_name: { description: 'Camera name reported by UniFi Protect.', type: 'string', }, has_mic: { description: 'Whether the camera has a microphone.', type: 'boolean', }, mac: { description: 'MAC address reported by the UniFi Protect camera.', type: 'string', }, model: { description: 'Model reported by the UniFi Protect camera.', type: 'string', }, nvr_name: { description: 'Name of the UniFi Protect console that manages the camera.', type: 'string', }, }, type: 'object', }, visionline_metadata: { description: 'Metadata for an ASSA ABLOY Visionline system.', properties: { encoder_id: { description: 'Encoder ID for an ASSA ABLOY Visionline system.', type: 'string', }, }, type: 'object', }, wyze_metadata: { description: 'Metadata for a Wyze device.', properties: { device_id: { description: 'Device ID for a Wyze device.', type: 'string', }, device_info_model: { description: 'Device information model for a Wyze device.', type: 'string', }, device_name: { description: 'Device name for a Wyze device.', type: 'string', }, keypad_uuid: { description: 'Keypad UUID for a Wyze device.', type: 'string', }, locker_status_hardlock: { description: 'Locker status (hardlock) for a Wyze device.', format: 'float', type: 'number', }, product_model: { description: 'Product model for a Wyze device.', type: 'string', }, product_name: { description: 'Product name for a Wyze device.', type: 'string', }, product_type: { description: 'Product type for a Wyze device.', type: 'string', }, }, type: 'object', }, yacan_metadata: { description: 'Metadata for a Yacan device.', properties: { device_id: { description: 'Device ID for a Yacan device.', type: 'string', }, device_name: { description: 'Device name for a Yacan device.', type: 'string', }, device_type: { description: 'Device type for a Yacan device.', type: 'string', }, serial_number: { description: 'Serial number for a Yacan device.', type: 'string', }, }, type: 'object', }, yale_connect_metadata: { description: 'Metadata for a Yale Connect lock.', properties: { device_id: { description: 'Device ID for a Yale Connect lock.', type: 'string', }, device_name: { description: 'Device name for a Yale Connect lock.', type: 'string', }, firmware_version: { description: 'Firmware version reported by the Yale Connect lock.', type: 'string', }, home_name: { description: 'Name of the Yale Connect home that contains the lock.', type: 'string', }, model: { description: 'Model reported by the Yale Connect lock.', type: 'string', }, time_zone_description: { description: 'Time zone of the Yale Connect home, as Yale reports it.', type: 'string', }, }, type: 'object', }, }, type: 'object', 'x-property-group-key': 'provider_metadata', }, ], }, { allOf: [ { properties: { auto_lock_delay_seconds: { description: 'The delay in seconds before the lock automatically locks after being unlocked.', format: 'float', type: 'number', 'x-property-group-key': 'locks', }, auto_lock_enabled: { description: 'Indicates whether automatic locking is enabled.', type: 'boolean', 'x-property-group-key': 'locks', }, backup_access_code_pool_enabled: { description: 'Indicates whether the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is currently enabled for the device. To disable it, set this to `false` using [/devices/update](https://www.seam.co/docs/api/devices/update).', type: 'boolean', 'x-property-group-key': 'access_codes', }, code_constraints: { description: 'Constraints on access codes for the device. Seam represents each constraint as an object with a `constraint_type` property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.', items: { description: 'Access code constraint.', oneOf: [ { description: 'Code constraint for access codes.', properties: { constraint_type: { description: 'Code constraint type for access codes.', enum: [ 'no_zeros', 'cannot_start_with_12', 'no_triple_consecutive_ints', 'cannot_specify_pin_code', 'pin_code_matches_existing_set', 'start_date_in_future', 'no_ascending_or_descending_sequence', 'at_least_three_unique_digits', 'cannot_contain_089', 'cannot_contain_0789', 'unique_first_four_digits', 'no_all_same_digits', ], type: 'string', }, }, required: ['constraint_type'], type: 'object', }, { description: 'Name constraint for access codes.', properties: { constraint_type: { enum: ['name_length', 'name_must_be_unique'], type: 'string', }, max_length: { description: 'Maximum name length constraint for access codes.', format: 'float', type: 'number', }, min_length: { description: 'Minimum name length constraint for access codes.', format: 'float', type: 'number', }, }, required: ['constraint_type'], type: 'object', }, ], }, type: 'array', 'x-property-group-key': 'access_codes', }, door_open: { description: 'Indicates whether the door is open.', type: 'boolean', 'x-property-group-key': 'locks', }, has_native_entry_events: { description: 'Indicates whether the device supports native entry events.', type: 'boolean', 'x-property-group-key': 'access_codes', }, keypad_battery: { deprecated: true, description: 'Keypad battery status.', properties: { level: { description: '\n Keypad battery charge level.\n ', format: 'float', type: 'number', }, }, required: ['level'], type: 'object', 'x-deprecated': 'Use `accessory_keypad.battery` instead.', 'x-property-group-key': 'access_codes', }, locked: { description: 'Indicates whether the lock is locked.', type: 'boolean', 'x-property-group-key': 'locks', }, max_active_codes_supported: { description: 'Maximum number of active access codes that the device supports.', format: 'float', type: 'number', 'x-property-group-key': 'access_codes', }, offline_time_frame_options: { description: "Time frames that may be requested when creating an offline access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works.", items: { description: 'One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis.', properties: { display_name: { description: 'Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed start times`).', type: 'string', }, end_date_recurrence_rule: { description: 'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.', type: 'string', }, matching_start_end_time: { description: 'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.', enum: [true], type: 'boolean', }, max_duration: { description: 'Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.', type: 'string', }, min_duration: { description: 'Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.', type: 'string', }, start_date_recurrence_rule: { description: 'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.', type: 'string', }, time_pairs: { description: 'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.', items: { description: 'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.', properties: { display_name: { description: 'Label for the start/end time pairing.', type: 'string', }, end_time: { description: "End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.", type: 'string', }, start_time: { description: "Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.", type: 'string', }, }, required: [ 'display_name', 'start_time', 'end_time', ], type: 'object', }, type: 'array', }, time_zone: { description: 'IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.', type: 'string', }, }, required: ['display_name'], type: 'object', }, type: 'array', 'x-property-group-key': 'access_codes', }, online_time_frame_options: { description: "Time frames that may be requested when creating an online access code, expressed as a list of options. The caller picks one option (by matching the requested duration when the options' duration ranges do not overlap, or by `display_name` when they do) and satisfies that one option's rules. When `undefined`, any time frame works.", items: { description: 'One way to make a code: a duration band plus the time-of-day and date rules that apply within it. Absence of a rule means unrestricted on that axis.', properties: { display_name: { description: 'Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed start times`).', type: 'string', }, end_date_recurrence_rule: { description: 'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.', type: 'string', }, matching_start_end_time: { description: 'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.', enum: [true], type: 'boolean', }, max_duration: { description: 'Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum.', type: 'string', }, min_duration: { description: 'Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum.', type: 'string', }, start_date_recurrence_rule: { description: 'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.', type: 'string', }, time_pairs: { description: 'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.', items: { description: 'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.', properties: { display_name: { description: 'Label for the start/end time pairing.', type: 'string', }, end_time: { description: "End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.", type: 'string', }, start_time: { description: "Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.", type: 'string', }, }, required: [ 'display_name', 'start_time', 'end_time', ], type: 'object', }, type: 'array', }, time_zone: { description: 'IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates.', type: 'string', }, }, required: ['display_name'], type: 'object', }, type: 'array', 'x-property-group-key': 'access_codes', }, speaker: { description: 'Audio state and capabilities of the speaker.', properties: { grouped_with_device_ids: { description: 'IDs of the other speakers that are currently grouped with this speaker. Pausing or resuming playback on a speaker also affects the speakers in its group.', items: { format: 'uuid', type: 'string' }, type: 'array', }, has_fixed_volume: { description: "Indicates whether the speaker's volume is fixed, for example, because the speaker's line-out level is controlled by an external amplifier. A speaker with a fixed volume cannot have its volume set through Seam.", type: 'boolean', }, is_muted: { description: 'Indicates whether the speaker is muted.', type: 'boolean', }, max_volume: { description: "Maximum volume that you can set on the speaker. This is the ceiling of the speaker's native volume scale, not a limit configured for guests.", format: 'float', type: 'number', }, min_volume: { description: 'Minimum volume that you can set on the speaker.', format: 'float', type: 'number', }, now_playing: { description: 'Content that is currently playing on the speaker.', properties: { album: { description: 'Album of the content that is currently playing.', type: 'string', }, artist: { description: 'Artist of the content that is currently playing.', type: 'string', }, title: { description: 'Title of the content that is currently playing.', type: 'string', }, }, type: 'object', }, playback_state: { description: 'Playback state of the speaker.', enum: [ 'playing', 'paused', 'idle', 'buffering', 'unknown', ], type: 'string', }, supports_chime: { description: 'Indicates whether the speaker can play a chime or an audio clip.', type: 'boolean', }, volume: { description: "Current volume of the speaker, on the speaker's native volume scale from `min_volume` to `max_volume`. This is the native volume setting, not a decibel level.", format: 'float', type: 'number', }, volume_reported_at: { description: 'Date and time at which the speaker first reported its current volume.', format: 'date-time', type: 'string', }, volume_step: { description: 'Increment between the volume values that you can set on the speaker.', format: 'float', type: 'number', }, }, required: [ 'volume', 'is_muted', 'has_fixed_volume', 'min_volume', 'max_volume', 'volume_step', 'playback_state', 'grouped_with_device_ids', 'supports_chime', ], type: 'object', 'x-property-group-key': 'speakers', 'x-undocumented': 'Unreleased.', }, supported_code_lengths: { description: 'Supported code lengths for access codes.', items: { format: 'float', type: 'number' }, type: 'array', 'x-property-group-key': 'access_codes', }, supports_backup_access_code_pool: { description: 'Indicates whether the device supports a [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes).', type: 'boolean', 'x-property-group-key': 'access_codes', }, }, type: 'object', }, { properties: { active_thermostat_schedule: { deprecated: true, description: 'Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', nullable: true, properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', type: 'string', }, created_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, errors: { description: 'Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, is_override_allowed: { description: "Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts.", type: 'boolean', }, max_override_period_minutes: { description: "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", exclusiveMinimum: true, minimum: 0, nullable: true, type: 'integer', }, name: { description: 'User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', nullable: true, type: 'string', }, starts_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, thermostat_schedule_id: { description: 'ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', format: 'uuid', type: 'string', }, warnings: { description: 'Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', items: { description: 'Warning associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'climate_preset_activation_may_fail', ], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the thermostat schedule.', format: 'uuid', type: 'string', }, }, required: [ 'thermostat_schedule_id', 'device_id', 'name', 'climate_preset_key', 'starts_at', 'ends_at', 'workspace_id', 'created_at', 'errors', 'warnings', ], type: 'object', 'x-deprecated': 'Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'thermostats', 'x-route-path': '/thermostats/schedules', }, active_thermostat_schedule_id: { description: 'ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', format: 'uuid', nullable: true, type: 'string', 'x-property-group-key': 'thermostats', }, available_climate_preset_modes: { description: 'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".', items: { description: 'Climate preset mode for the thermostat, such as `home`, `away`, `wake`, `sleep`, `occupied`, or `unoccupied`.', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, type: 'array', 'x-draft': 'Needs review.', 'x-property-group-key': 'thermostats', }, available_climate_presets: { description: 'Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.', items: { properties: { can_delete: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.', type: 'boolean', }, can_edit: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.', type: 'boolean', }, can_use_with_thermostat_daily_programs: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program.', type: 'boolean', }, climate_preset_key: { description: 'Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, climate_preset_mode: { description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, display_name: { description: 'Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, ecobee_metadata: { description: '\n Metadata specific to the Ecobee climate, if applicable.\n ', properties: { climate_ref: { description: 'Reference to the Ecobee climate, if applicable.', type: 'string', }, is_optimized: { description: 'Indicates if the climate preset is optimized by Ecobee.', type: 'boolean', }, owner: { description: 'Indicates whether the climate preset is owned by the user or the system.', enum: ['user', 'system'], type: 'string', }, }, type: 'object', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, manual_override_allowed: { deprecated: true, description: "Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', 'x-deprecated': "Use 'thermostat_schedule.is_override_allowed'", 'x-end-of-life': '2026-11-09', }, name: { default: null, description: 'User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', nullable: true, type: 'string', }, }, required: [ 'climate_preset_key', 'can_edit', 'can_delete', 'can_use_with_thermostat_daily_programs', 'display_name', 'manual_override_allowed', ], type: 'object', }, type: 'array', 'x-property-group-key': 'thermostats', }, available_fan_mode_settings: { description: 'Fan mode settings that the thermostat supports.', items: { description: 'Fan mode setting for the thermostat, such as `auto`, `on`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, type: 'array', 'x-property-group-key': 'thermostats', }, available_hvac_mode_settings: { description: 'HVAC mode settings that the thermostat supports.', items: { description: 'HVAC mode setting for the thermostat, such as `heat`, `cool`, `heat_cool`, `eco`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, type: 'array', 'x-property-group-key': 'thermostats', }, current_climate_setting: { description: 'Current climate setting.', properties: { can_delete: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.', type: 'boolean', }, can_edit: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.', type: 'boolean', }, can_use_with_thermostat_daily_programs: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program.', type: 'boolean', }, climate_preset_key: { description: 'Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, climate_preset_mode: { description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, display_name: { description: 'Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, ecobee_metadata: { description: '\n Metadata specific to the Ecobee climate, if applicable.\n ', properties: { climate_ref: { description: 'Reference to the Ecobee climate, if applicable.', type: 'string', }, is_optimized: { description: 'Indicates if the climate preset is optimized by Ecobee.', type: 'boolean', }, owner: { description: 'Indicates whether the climate preset is owned by the user or the system.', enum: ['user', 'system'], type: 'string', }, }, type: 'object', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, manual_override_allowed: { deprecated: true, description: "Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', 'x-deprecated': "Use 'thermostat_schedule.is_override_allowed'", 'x-end-of-life': '2026-11-09', }, name: { default: null, description: 'User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', nullable: true, type: 'string', }, }, type: 'object', 'x-property-group-key': 'thermostats', }, default_climate_setting: { deprecated: true, properties: { can_delete: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.', type: 'boolean', }, can_edit: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.', type: 'boolean', }, can_use_with_thermostat_daily_programs: { description: 'Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be programmed in a thermostat daily program.', type: 'boolean', }, climate_preset_key: { description: 'Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, climate_preset_mode: { description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, display_name: { description: 'Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, ecobee_metadata: { description: '\n Metadata specific to the Ecobee climate, if applicable.\n ', properties: { climate_ref: { description: 'Reference to the Ecobee climate, if applicable.', type: 'string', }, is_optimized: { description: 'Indicates if the climate preset is optimized by Ecobee.', type: 'boolean', }, owner: { description: 'Indicates whether the climate preset is owned by the user or the system.', enum: ['user', 'system'], type: 'string', }, }, type: 'object', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, manual_override_allowed: { deprecated: true, description: "Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', 'x-deprecated': "Use 'thermostat_schedule.is_override_allowed'", 'x-end-of-life': '2026-11-09', }, name: { default: null, description: 'User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', nullable: true, type: 'string', }, }, type: 'object', 'x-deprecated': 'use fallback_climate_preset_key to specify a fallback climate preset instead.', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'thermostats', }, fallback_climate_preset_key: { description: 'Key of the [fallback climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) for the thermostat.', minLength: 1, nullable: true, type: 'string', 'x-property-group-key': 'thermostats', }, fan_mode_setting: { deprecated: true, enum: ['auto', 'on', 'circulate'], type: 'string', 'x-deprecated': 'Use `current_climate_setting.fan_mode_setting` instead.', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'thermostats', }, is_cooling: { description: 'Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat.', type: 'boolean', 'x-property-group-key': 'thermostats', }, is_fan_running: { description: 'Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat.', type: 'boolean', 'x-property-group-key': 'thermostats', }, is_heating: { description: 'Indicates whether the connected HVAC system is currently heating, as reported by the thermostat.', type: 'boolean', 'x-property-group-key': 'thermostats', }, is_temporary_manual_override_active: { description: 'Indicates whether the current thermostat settings differ from the most recent active program or schedule that Seam activated. For this condition to occur, `current_climate_setting.manual_override_allowed` must also be `true`.', type: 'boolean', 'x-property-group-key': 'thermostats', }, max_cooling_set_point_celsius: { description: 'Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, max_cooling_set_point_fahrenheit: { description: 'Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, max_heating_set_point_celsius: { description: 'Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, max_heating_set_point_fahrenheit: { description: 'Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, max_thermostat_daily_program_periods_per_day: { description: 'Maximum number of periods that the thermostat can support per day. For example, if the thermostat supports 4 periods per day, this value is 4.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, max_unique_climate_presets_per_thermostat_weekly_program: { description: 'Maximum number of climate presets that the thermostat can support for weekly programming.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_cooling_set_point_celsius: { description: 'Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_cooling_set_point_fahrenheit: { description: 'Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_heating_cooling_delta_celsius: { description: 'Minimum [temperature difference](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#minimum-heating-cooling-temperature-delta) in °C between the cooling and heating set points when in heat-cool (auto) mode.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_heating_cooling_delta_fahrenheit: { description: 'Minimum [temperature difference](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#minimum-heating-cooling-temperature-delta) in °F between the cooling and heating set points when in heat-cool (auto) mode.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_heating_set_point_celsius: { description: 'Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, min_heating_set_point_fahrenheit: { description: 'Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, relative_humidity: { description: 'Reported relative humidity, as a value between 0 and 1, inclusive.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-property-group-key': 'thermostats', }, temperature_celsius: { description: 'Reported temperature in °C.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, temperature_fahrenheit: { description: 'Reported temperature in °F.', format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, temperature_threshold: { description: 'Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.', properties: { lower_limit_celsius: { description: 'Lower limit in °C within the current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.\n ', format: 'float', nullable: true, type: 'number', }, lower_limit_fahrenheit: { description: 'Lower limit in °F within the current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.\n ', format: 'float', nullable: true, type: 'number', }, upper_limit_celsius: { description: 'Upper limit in °C within the current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.\n ', format: 'float', nullable: true, type: 'number', }, upper_limit_fahrenheit: { description: 'Upper limit in °F within the current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat.\n ', format: 'float', nullable: true, type: 'number', }, }, required: [ 'lower_limit_celsius', 'lower_limit_fahrenheit', 'upper_limit_celsius', 'upper_limit_fahrenheit', ], type: 'object', 'x-property-group-key': 'thermostats', }, thermostat_daily_program_period_precision_minutes: { description: "Precision of the thermostat's period in minutes. For example, if the thermostat supports 15-minute periods, this value is 15. All values are relative to the top of the hour, so for 15 minutes, the periods would be 0, 15, 30, and 45 minutes past the hour.", format: 'float', type: 'number', 'x-property-group-key': 'thermostats', }, thermostat_daily_programs: { description: 'Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat.', items: { description: 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.', properties: { created_at: { description: 'Date and time at which the thermostat daily program was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the thermostat device on which the thermostat daily program is configured.', format: 'uuid', type: 'string', }, name: { description: 'User-friendly name to identify the thermostat daily program.', nullable: true, type: 'string', }, periods: { description: 'Array of thermostat daily program periods.', items: { description: 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.', properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.', type: 'string', }, starts_at_time: { description: 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$', type: 'string', }, }, required: [ 'starts_at_time', 'climate_preset_key', ], type: 'object', }, type: 'array', }, thermostat_daily_program_id: { description: 'ID of the thermostat daily program.', format: 'uuid', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains the thermostat daily program.', format: 'uuid', type: 'string', }, }, required: [ 'thermostat_daily_program_id', 'device_id', 'name', 'periods', 'workspace_id', 'created_at', ], type: 'object', 'x-route-path': '/thermostats/daily_programs', }, type: 'array', 'x-property-group-key': 'thermostats', }, thermostat_weekly_program: { description: 'Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat.', nullable: true, properties: { created_at: { description: 'Date and time at which the thermostat weekly program was created.', format: 'date-time', type: 'string', }, friday_program_id: { description: 'ID of the thermostat daily program to run on Fridays.', format: 'uuid', nullable: true, type: 'string', }, monday_program_id: { description: 'ID of the thermostat daily program to run on Mondays.', format: 'uuid', nullable: true, type: 'string', }, saturday_program_id: { description: 'ID of the thermostat daily program to run on Saturdays.', format: 'uuid', nullable: true, type: 'string', }, sunday_program_id: { description: 'ID of the thermostat daily program to run on Sundays.', format: 'uuid', nullable: true, type: 'string', }, thursday_program_id: { description: 'ID of the thermostat daily program to run on Thursdays.', format: 'uuid', nullable: true, type: 'string', }, tuesday_program_id: { description: 'ID of the thermostat daily program to run on Tuesdays.', format: 'uuid', nullable: true, type: 'string', }, wednesday_program_id: { description: 'ID of the thermostat daily program to run on Wednesdays.', format: 'uuid', nullable: true, type: 'string', }, }, required: [ 'monday_program_id', 'tuesday_program_id', 'wednesday_program_id', 'thursday_program_id', 'friday_program_id', 'saturday_program_id', 'sunday_program_id', 'created_at', ], type: 'object', 'x-property-group-key': 'thermostats', }, }, type: 'object', }, ], }, ], description: 'Properties of the device.', 'x-property-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, speakers: { name: 'Speakers' }, thermostats: { name: 'Thermostats' }, }, }, relative_humidity: { description: 'Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-property-group-key': 'sensors', }, salt_ppm: { description: 'Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator.', format: 'float', type: 'number', 'x-property-group-key': 'pools', 'x-undocumented': 'Unreleased.', }, space_ids: { description: 'IDs of the spaces the device is in.', items: { format: 'uuid', type: 'string' }, type: 'array', }, temperature_celsius: { description: 'Temperature in °C, if the device measures temperature.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, temperature_fahrenheit: { description: 'Temperature in °F, if the device measures temperature.', format: 'float', type: 'number', 'x-property-group-key': 'sensors', }, temperature_setting: { description: "Current setting of the device's primary temperature controller.", properties: { controller_mode: { description: "Operating mode requested from the device's primary temperature controller.", enum: ['heat', 'off'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the controller should heat, in °C. The controller can retain this value while it is off.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the controller should heat, in °F. The controller can retain this value while it is off.', format: 'float', type: 'number', }, }, required: ['controller_mode'], type: 'object', 'x-property-group-key': 'temperature_controllers', 'x-undocumented': 'Unreleased.', }, warnings: { description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the backup access code is unhealthy.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['partial_backup_access_code_pool'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that there are too many backup codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['many_active_backup_codes'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party integration has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['third_party_integration_detected'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Remote Unlock feature is not enabled in the settings."', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_lock_gateway_unlocking_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the gateway signal is weak.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_weak_gateway_signal'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device is in power saving mode and may have limited functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['power_saving_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the temperature threshold has been exceeded.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['temperature_threshold_exceeded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that the device appears to be unresponsive.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_communication_degraded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that a scheduled maintenance window has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['scheduled_maintenance_window'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the device has a flaky connection.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_has_flaky_connection'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Salto KS lock is in Office Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_office_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { deprecated: true, description: 'Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `privacy_mode` instead.', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_almost_reached'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_lock_access_code_support_removed'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that an unknown issue occurred while syncing the state of the phone with the provider. This issue may affect the proper functioning of the phone.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_phone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'phones', }, { description: 'Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['lockly_time_zone_not_configured'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ultraloq_time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_mismatch'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['two_n_device_missing_timezone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['hub_required_for_additional_capabilities'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['service_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-undocumented': 'Unreleased.', 'x-variant-group-key': 'pools', }, { description: 'Indicates a provider-specific issue that may affect device functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['provider_issue'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the key is in a locker that does not support the access codes API.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['keynest_unsupported_locker'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad exists, but is not linked to the Igloohome Bridge. Online access code programming will fail until the keypad is linked to the Igloohome Bridge in the Igloohome app.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_setup_required'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_low_battery'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about two weeks of battery life remaining or the provider otherwise recommends replacing the lock's batteries soon.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['battery_replacement_recommended'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unreliable_online_status'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.', properties: { active_access_code_count: { description: 'Number of active access codes on the device when the warning was set.', type: 'integer', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, max_active_access_code_count: { description: 'Maximum number of active access codes supported by the device.', type: 'integer', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['max_access_codes_reached'], type: 'string', }, }, required: [ 'message', 'created_at', 'warning_code', 'active_access_code_count', 'max_active_access_code_count', ], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party subscription is required to enable additional device capabilities.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'subscription_required_for_additional_capabilities', ], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { deprecated: true, description: "Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['cloud_recording_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `subscription_required_for_additional_capabilities`.', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, workspace_id: { description: 'Unique identifier for the Seam workspace associated with the device.', format: 'uuid', type: 'string', }, }, required: [ 'device_id', 'device_type', 'space_ids', 'display_name', 'capabilities_supported', 'is_online', 'connected_account_id', 'workspace_id', 'errors', 'warnings', 'created_at', 'is_managed', 'custom_metadata', ], type: 'object', 'x-property-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, sensors: { name: 'Sensors' }, speakers: { name: 'Speakers' }, temperature_controllers: { name: 'Temperature Controllers' }, thermostats: { name: 'Thermostats' }, }, 'x-route-path': '/devices', }, device_provider: { properties: { can_activate_weekly_program: { description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.', type: 'boolean', }, can_configure_auto_lock: { description: 'Indicates whether the lock supports configuring automatic locking.', type: 'boolean', }, can_control_temperature: { description: 'Indicates whether the device supports controlling its primary target temperature.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_hvac_cool: { description: 'Indicates whether the thermostat supports cooling.', type: 'boolean', }, can_hvac_heat: { description: 'Indicates whether the thermostat supports heating.', type: 'boolean', }, can_hvac_heat_cool: { description: 'Indicates whether the thermostat supports simultaneous heating and cooling.', type: 'boolean', }, can_mute_speaker: { description: 'Indicates whether the speaker supports muting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_pause_speaker_playback: { description: 'Indicates whether the speaker supports pausing playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_audio_clip: { description: 'Indicates whether the speaker supports playing an audio clip from a URL.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_chime: { description: 'Indicates whether the speaker supports playing a chime.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_favorite: { description: "Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations.", type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_program_offline_access_codes: { description: 'Indicates whether the device supports programming offline access codes.', type: 'boolean', }, can_program_online_access_codes: { description: 'Indicates whether the device supports programming online access codes.', type: 'boolean', }, can_program_thermostat_programs_as_different_each_day: { description: 'Indicates whether the thermostat supports different climate programs for each day of the week.', type: 'boolean', }, can_program_thermostat_programs_as_same_each_day: { description: 'Indicates whether the thermostat supports a single climate program applied to every day.', type: 'boolean', }, can_program_thermostat_programs_as_weekday_weekend: { description: 'Indicates whether the thermostat supports weekday/weekend climate programs.', type: 'boolean', }, can_remotely_lock: { description: 'Indicates whether the device supports remote locking.', type: 'boolean', }, can_remotely_unlock: { description: 'Indicates whether the device supports remote unlocking.', type: 'boolean', }, can_resume_speaker_playback: { description: 'Indicates whether the speaker supports resuming playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_run_thermostat_programs: { description: 'Indicates whether the thermostat supports running climate programs.', type: 'boolean', }, can_set_speaker_volume: { description: 'Indicates whether the speaker supports setting its volume.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_simulate_connection: { description: 'Indicates whether the device supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_disconnection: { description: 'Indicates whether the device supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_hub_connection: { description: 'Indicates whether the hub supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_hub_disconnection: { description: 'Indicates whether the hub supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_paid_subscription: { description: 'Indicates whether the device supports simulating a paid subscription in a sandbox.', type: 'boolean', }, can_simulate_removal: { description: 'Indicates whether the device supports simulating removal in a sandbox.', type: 'boolean', }, can_stream_live_video: { description: 'Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.', type: 'boolean', }, can_turn_off_hvac: { description: 'Indicates whether the thermostat can be turned off.', type: 'boolean', }, can_unlock_with_code: { description: 'Indicates whether the lock supports unlocking with an access code.', type: 'boolean', }, can_unmute_speaker: { description: 'Indicates whether the speaker supports unmuting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, device_provider_name: { description: 'Name of the device provider.', enum: [ 'hotek', 'dormakaba_community', 'legic_connect', 'akuvox', 'august', 'avigilon_alta', 'brivo', 'butterflymx', 'schlage', 'smartthings', 'yale', 'yale_access', 'yale_home', 'genie', 'doorking', 'salto', 'salto_ks', 'salto_ks_accept', 'lockly', 'ttlock', 'linear', 'noiseaware', 'nuki', 'igloo', 'kwikset', 'minut', 'my_2n', 'controlbyweb', 'nest', 'igloohome', 'ecobee', 'four_suites', 'dormakaba_oracode', 'dormakaba_oracode_iho', 'pti', 'wyze', 'seam_passport', 'visionline', 'assa_abloy_credential_service', 'tedee', 'honeywell_resideo', 'first_alert', 'latch', 'akiles', 'assa_abloy_vostio', 'assa_abloy_vostio_credential_service', 'tado', 'salto_space', 'sensi', 'sensibo', 'cielo', 'keynest', 'korelock', 'keyincode', 'dormakaba_ambiance', 'ultraloq', 'yacan', 'dusaw', 'sifely', 'thirty_three_lock', 'ring', 'tapo', 'arlo', 'reolink', 'unifi_protect', 'yale_connect', 'alertify', 'ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling', 'omnitec', 'kisi', 'aqara', 'eufy', 'sonos', 'hayward_omnilogic', 'jandy_iaqualink', 'tuya', ], type: 'string', }, display_name: { description: 'Display name for the device provider.', type: 'string', }, image_url: { description: 'Image URL for the device provider.', type: 'string', }, provider_categories: { description: 'List of provider categories to which the device provider belongs, such as `stable`, `consumer_smartlocks`, `thermostats`, and so on.', items: { enum: [ 'stable', 'consumer_smartlocks', 'beta', 'thermostats', 'noise_sensors', 'access_control_systems', 'cameras', 'connectors', ], type: 'string', }, type: 'array', }, }, required: [ 'device_provider_name', 'display_name', 'image_url', 'provider_categories', ], type: 'object', 'x-route-path': '/devices', }, enrollment_automation: { description: 'Represents an [enrollment automation](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system) within the [Seam mobile access solution](https://www.seam.co/docs/capability-guides/mobile-access).', properties: { created_at: { description: 'Date and time at which the enrollment automation was created.', format: 'date-time', type: 'string', }, credential_manager_acs_system_id: { description: 'ID of the associated [ACS system](https://www.seam.co/docs/low-level-apis/access-systems) that serves as the credential manager.', format: 'uuid', type: 'string', }, enrollment_automation_id: { description: 'ID of the enrollment automation.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the associated [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', format: 'uuid', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains the enrollment automation.', format: 'uuid', type: 'string', }, }, required: [ 'enrollment_automation_id', 'credential_manager_acs_system_id', 'user_identity_id', 'created_at', 'workspace_id', ], type: 'object', 'x-end-of-life': '2026-11-24', 'x-route-path': '/user_identities/enrollment_automations', 'x-undocumented': 'Will be removed.', }, event: { description: "Represents an event. Events let you know when something interesting happens in your workspace. For example, when a lock is unlocked, Seam creates a `lock.unlocked` event. When a device's battery level is low, Seam creates a `device.battery_low` event.\n\nAs with other API resources, you can retrieve an individual event or a list of events. Seam also provides a separate webhook system for sending the event objects directly to an endpoint on your sever. Manage webhooks through [Seam Console](https://console.seam.co). You can also use the webhooks sandbox in Seam Console to see the different payloads for each event and test them against your own endpoints.", discriminator: { propertyName: 'event_type' }, oneOf: [ { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was created.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.created'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, change_reason: { description: 'Human-readable reason for the change (e.g. `ongoing code auto-renewed`).', type: 'string', }, changed_properties: { description: 'List of properties that changed on the access code.', items: { description: 'Record describing a single changed property.', properties: { from: { description: 'Previous value of the property, or null if not set.', nullable: true, type: 'string', }, property: { description: 'Name of the property that changed (e.g. `code`).', type: 'string', }, to: { description: 'New value of the property, or null if cleared.', nullable: true, type: 'string', }, }, required: ['property', 'from', 'to'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.changed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'The name of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, description: { description: 'Human-readable description of the change and its source.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.name_changed'], type: 'string', }, from: { description: 'Previous access code name configuration.', properties: { name: { description: 'Previous name of the access code.', nullable: true, type: 'string', }, }, required: ['name'], type: 'object', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, to: { description: 'New access code name configuration.', properties: { name: { description: 'New name of the access code.', nullable: true, type: 'string', }, }, required: ['name'], type: 'object', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'from', 'to', 'description', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'The pin code of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, description: { description: 'Human-readable description of the change and its source.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.code_changed'], type: 'string', }, from: { description: 'Previous pin code configuration.', properties: { code: { description: 'Previous pin code.', nullable: true, type: 'string', }, }, required: ['code'], type: 'object', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, to: { description: 'New pin code configuration.', properties: { code: { description: 'New pin code.', nullable: true, type: 'string', }, }, required: ['code'], type: 'object', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'from', 'to', 'description', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'The time frame of an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was changed on the device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, description: { description: 'Human-readable description of the change and its source.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.time_frame_changed'], type: 'string', }, from: { description: 'Previous time frame configuration.', properties: { ends_at: { description: 'Previous end time.', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time.', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, to: { description: 'New time frame configuration.', properties: { ends_at: { description: 'New end time.', nullable: true, type: 'string', }, starts_at: { description: 'New start time.', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'from', 'to', 'description', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'Mutations were requested on an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.mutations_requested'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, requested_mutations: { description: 'Array of mutations requested on the access code, each containing the mutation type and from/to values.', items: { description: 'Record describing a single requested mutation.', properties: { from: { additionalProperties: {}, description: 'Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.', type: 'object', }, mutation_code: { description: 'Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`.', enum: [ 'updating_name', 'updating_code', 'updating_time_frame', 'deleting', 'creating', 'deferring_creation', ], type: 'string', }, to: { additionalProperties: {}, description: 'New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.', type: 'object', }, }, required: ['mutation_code'], type: 'object', }, type: 'array', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'requested_mutations', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, code: { description: 'Code for the affected access code.', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.scheduled_on_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'code', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was set on a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, code: { description: 'Code for the affected access code.', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.set_on_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'code', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was removed from a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.removed_from_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'There was an unusually long delay in setting an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) on a device.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.delay_in_setting_on_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) failed to be set on a device.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.failed_to_set_on_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was issued.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, code: { description: 'Code for the affected access code.', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.issued'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'code', ], type: 'object', 'x-route-path': '/access_codes', 'x-undocumented': 'Unreleased.', }, { description: 'Seam has not yet issued this [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes), even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and the accompanying `delay_in_issuing` warning clears automatically once issuance succeeds.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.delay_in_issuing'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', 'x-undocumented': 'Unreleased.', }, { description: 'Seam was unable to issue this [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. The accompanying `failed_to_issue` error clears automatically if the access code is eventually issued.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.failed_to_issue'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', 'x-undocumented': 'Unreleased.', }, { description: "Seam was unable to apply this [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes)'s requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and the accompanying `failed_to_update` error clears automatically once the update is applied.", properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.failed_to_update'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', 'x-undocumented': 'Unreleased.', }, { description: 'Seam was unable to remove an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and the accompanying `failed_to_delete` error clears automatically once the access code is no longer usable on the device.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.failed_to_delete'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was deleted.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, code: { description: 'Code for the affected access code.', nullable: true, type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'code', ], type: 'object', 'x-route-path': '/access_codes', }, { deprecated: true, description: 'There was an unusually long delay in removing an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) from a device.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.delay_in_removing_from_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-deprecated': 'Seam no longer emits this event. Use `access_code.failed_to_remove_from_device` instead.', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) failed to be removed from a device.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.failed_to_remove_from_device'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was modified outside of Seam.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.modified_external_to_seam'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was deleted outside of Seam.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.deleted_external_to_seam'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'A [backup access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) was pulled from the backup access code pool and set on a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, backup_access_code_id: { description: 'ID of the backup access code that was pulled from the pool.', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.backup_access_code_pulled'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'backup_access_code_id', ], type: 'object', 'x-route-path': '/access_codes', }, { description: 'An [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) was converted successfully to a managed access code.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.unmanaged.converted_to_managed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes/unmanaged', }, { description: 'An [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) failed to be converted to a managed access code.', properties: { access_code_errors: { description: 'Errors associated with the access code.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, access_code_warnings: { description: 'Warnings associated with the access code.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.unmanaged.failed_to_convert_to_managed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', 'access_code_errors', 'access_code_warnings', ], type: 'object', 'x-route-path': '/access_codes/unmanaged', }, { description: 'An [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) was created on a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.unmanaged.created'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes/unmanaged', }, { description: 'An [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) was removed from a device.', properties: { access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_code.unmanaged.removed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_code_id', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/access_codes/unmanaged', }, { description: 'An Access Grant was created.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.created'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'An Access Grant was deleted.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'All access requested for an Access Grant was successfully granted.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.access_granted_to_all_doors'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'Access requested as part of an Access Grant to a particular door was successfully granted.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, acs_entrance_id: { description: 'ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.access_granted_to_door'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', 'acs_entrance_id', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'Access to a particular door that was requested as part of an Access Grant was lost.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, acs_entrance_id: { description: 'ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.access_to_door_lost'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', 'acs_entrance_id', ], type: 'object', 'x-route-path': '/access_grants', }, { description: "An Access Grant's start or end time was changed.", properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, access_grant_key: { description: 'Key of the affected Access Grant (if present).', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, ends_at: { description: 'The new end time for the access grant.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_grant.access_times_changed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, starts_at: { description: 'The new start time for the access grant.', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'One or more requested access methods could not be created for an Access Grant.', properties: { access_grant_id: { description: 'ID of the affected Access Grant.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, error_message: { description: 'Description of why the access methods could not be created.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: [ 'access_grant.could_not_create_requested_access_methods', ], type: 'string', }, missing_device_ids: { description: 'IDs of the devices that did not receive a requested access method. Use these to identify which specific devices failed without having to fetch the Access Grant.', items: { format: 'uuid', type: 'string' }, type: 'array', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_grant_id', 'event_type', 'error_message', ], type: 'object', 'x-route-path': '/access_grants', }, { description: 'An access method was issued.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, code: { description: "The actual PIN code for code access methods (only present when mode is 'code').", type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.issued'], type: 'string' }, is_backup_code: { description: "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).", type: 'boolean', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An access method was revoked.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.revoked'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An access method representing a physical card requires encoding.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.card_encoding_required'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An access method was deleted.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.deleted'], type: 'string' }, failed_to_delete_access_code_ids: { description: 'IDs of the access codes that were still set on a device when the access method was deleted. Access may still be possible with these codes until Seam removes them from the device. Each access code keeps its own deletion lifecycle, so watch it for `access_code.deleted` or `access_code.failed_to_delete`. Only present when at least one access code was still set on a device.', items: { format: 'uuid', type: 'string' }, type: 'array', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An access method was reissued.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, code: { description: "The actual PIN code for code access methods (only present when mode is 'code').", type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.reissued'], type: 'string' }, is_backup_code: { description: "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).", type: 'boolean', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An access method was created.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.created'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'Seam has not yet issued this access method, even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and the accompanying `delay_in_issuing` warning clears automatically once issuance succeeds.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.delay_in_issuing'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'Seam was unable to issue this access method before its access grant started, so the recipient may be unable to access the space. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and the accompanying `failed_to_issue` error clears automatically if the access method is eventually issued.', properties: { access_grant_ids: { description: 'IDs of the access grants associated with this access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, access_grant_keys: { description: 'Keys of the access grants associated with this access method (if present).', items: { type: 'string' }, type: 'array', }, access_method_id: { description: 'ID of the affected access method.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['access_method.failed_to_issue'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'access_method_id', 'access_grant_ids', 'event_type', ], type: 'object', 'x-route-path': '/access_methods', }, { description: 'An [access system](https://www.seam.co/docs/low-level-apis/access-systems) was connected.', properties: { acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_system.connected'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/systems', }, { description: 'An [access system](https://www.seam.co/docs/low-level-apis/access-systems) was added.', properties: { acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_system.added'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/systems', }, { description: 'An [access system](https://www.seam.co/docs/low-level-apis/access-systems) was disconnected.', properties: { acs_system_errors: { description: 'Errors associated with the access control system.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, acs_system_warnings: { description: 'Warnings associated with the access control system.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_system.disconnected'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'event_type', 'acs_system_errors', 'acs_system_warnings', 'connected_account_errors', 'connected_account_warnings', ], type: 'object', 'x-route-path': '/acs/systems', }, { description: 'An [access system credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was deleted.', properties: { acs_credential_id: { description: 'ID of the affected credential.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_credential.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_credential_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'An [access system credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was issued.', properties: { acs_credential_id: { description: 'ID of the affected credential.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_credential.issued'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_credential_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'An [access system credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was reissued.', properties: { acs_credential_id: { description: 'ID of the affected credential.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_credential.reissued'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_credential_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'An [access system credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was invalidated. That is, the credential cannot be used anymore.', properties: { acs_credential_id: { description: 'ID of the affected credential.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_credential.invalidated'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_credential_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/credentials', }, { description: 'An [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created.', properties: { acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the affected access system user.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_user.created'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_user_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/users', }, { description: 'An [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was deleted.', properties: { acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the affected access system user.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_user.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_user_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/users', }, { description: 'An [access system encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was added.', properties: { acs_encoder_id: { description: 'ID of the affected encoder.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_encoder.added'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_encoder_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/encoders', }, { description: 'An [access system encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was removed.', properties: { acs_encoder_id: { description: 'ID of the affected encoder.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_encoder.removed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_encoder_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/encoders', }, { description: 'An ACS access group was deleted.', properties: { acs_access_group_id: { description: 'ID of the affected access group.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_access_group.deleted'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_access_group_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/access_groups', }, { description: 'An [access system entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was added.', properties: { acs_entrance_id: { description: 'ID of the affected entrance.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_entrance.added'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_entrance_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/entrances', }, { description: 'An [access system entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was removed.', properties: { acs_entrance_id: { description: 'ID of the affected entrance.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access system.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['acs_entrance.removed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'acs_system_id', 'acs_entrance_id', 'event_type', ], type: 'object', 'x-route-path': '/acs/entrances', }, { description: 'A client session was deleted.', properties: { client_session_id: { description: 'ID of the affected client session.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['client_session.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'client_session_id', 'event_type', ], type: 'object', 'x-route-path': '/client_sessions', }, { description: 'A connected account was connected for the first time or was reconnected after being disconnected.', properties: { connect_webview_id: { description: 'ID of the Connect Webview associated with the event.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with this connected account, if any.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.connected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A connected account was created.', properties: { connect_webview_id: { description: 'ID of the Connect Webview associated with the event.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.created'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', 'connect_webview_id', ], type: 'object', 'x-route-path': '/connected_accounts', }, { deprecated: true, description: 'A connected account had a successful login using a Connect Webview.', properties: { connect_webview_id: { description: 'ID of the Connect Webview associated with the event.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.successful_login'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', 'connect_webview_id', ], type: 'object', 'x-deprecated': 'Use `connect_webview.login_succeeded`.', 'x-end-of-life': '2026-11-09', 'x-route-path': '/connected_accounts', }, { description: 'A connected account was disconnected.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.disconnected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A connected account completed the first sync with Seam, and the corresponding devices or systems are now available.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.completed_first_sync'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A connected account was deleted.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, connected_account_type: { type: 'string', 'x-undocumented': 'Unreleased.', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with this connected account, if any.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.deleted'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A connected account completed the first sync after reconnection with Seam, and the corresponding devices or systems are now available.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: [ 'connected_account.completed_first_sync_after_reconnection', ], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A connected account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the affected connected account.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connected_account.reauthorization_requested'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', ], type: 'object', 'x-route-path': '/connected_accounts', }, { description: 'A lock door action attempt succeeded.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.lock_door.succeeded'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A lock door action attempt failed.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.lock_door.failed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'An unlock door action attempt succeeded.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.unlock_door.succeeded'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'An unlock door action attempt failed.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.unlock_door.failed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A simulate keypad code entry action attempt succeeded.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.simulate_keypad_code_entry.succeeded'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A simulate keypad code entry action attempt failed.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.simulate_keypad_code_entry.failed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A simulate manual lock via keypad action attempt succeeded.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: [ 'action_attempt.simulate_manual_lock_via_keypad.succeeded', ], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A simulate manual lock via keypad action attempt failed.', properties: { action_attempt_id: { description: 'ID of the affected action attempt.', format: 'uuid', type: 'string', }, action_type: { description: 'Type of the action.', type: 'string', }, connected_account_id: { description: 'ID of the connected account associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device associated with the action attempt, if applicable.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['action_attempt.simulate_manual_lock_via_keypad.failed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, status: { description: 'Status of the action.', type: 'string' }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'action_attempt_id', 'action_type', 'status', 'event_type', ], type: 'object', 'x-route-path': '/action_attempts', }, { description: 'A Connect Webview login succeeded.', properties: { connect_webview_id: { description: 'ID of the affected Connect Webview.', format: 'uuid', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account; present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with this connect webview, if any.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connect_webview.login_succeeded'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connect_webview_id', 'event_type', 'connected_account_id', ], type: 'object', 'x-route-path': '/connect_webviews', }, { description: 'A Connect Webview login failed.', properties: { connect_webview_id: { description: 'ID of the affected Connect Webview.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['connect_webview.login_failed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connect_webview_id', 'event_type', ], type: 'object', 'x-route-path': '/connect_webviews', }, { description: 'The status of a device changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`. Note that some devices operate entirely in offline mode, so Seam never emits a `device.connected` event for these devices.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.connected'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A device was added to Seam or was re-added to Seam after having been removed.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.added'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A managed device was successfully converted to an [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.converted_to_unmanaged'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'An [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices) was successfully converted to a managed device.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.unmanaged.converted_to_managed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices/unmanaged', }, { description: 'The status of an [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.unmanaged.connected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices/unmanaged', }, { description: 'The status of a device changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, error_code: { description: 'Error code associated with the disconnection event, if any.', enum: [ 'account_disconnected', 'hub_disconnected', 'device_disconnected', 'bridge_disconnected', ], type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.disconnected'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'error_code', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/devices', }, { description: 'The status of an [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, error_code: { description: 'Error code associated with the disconnection event, if any.', enum: [ 'account_disconnected', 'hub_disconnected', 'device_disconnected', 'bridge_disconnected', ], type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.unmanaged.disconnected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'error_code', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/devices/unmanaged', }, { description: 'A device detected that it was tampered with, for example, opened or moved.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.tampered'], type: 'string' }, is_casing_tampered_with: { description: 'Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state.', type: 'boolean', }, is_detached_from_mounting_plate: { description: 'Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state.', type: 'boolean', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A device battery level dropped below the low threshold.', properties: { accessory_keypad_battery_level: { description: "Number in the range 0 to 1.0 indicating the battery level of the affected device's paired accessory keypad, when the device has one and its level is known.", format: 'float', maximum: 1, minimum: 0, type: 'number', }, battery_level: { deprecated: true, description: 'Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-deprecated': "Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.", 'x-end-of-life': '2026-11-09', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_battery_level: { description: "Number in the range 0 to 1.0 indicating the affected device's own battery level, when known.", format: 'float', maximum: 1, minimum: 0, type: 'number', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.low_battery'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'battery_level', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A device battery status changed since the last `battery_status_changed` event.', properties: { battery_level: { description: 'Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.', format: 'float', maximum: 1, minimum: 0, type: 'number', }, battery_status: { description: 'Battery status of the affected device, calculated from the numeric `battery_level` value.', enum: ['critical', 'low', 'good', 'full'], type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.battery_status_changed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'battery_status', 'battery_level', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A device was removed externally from the connected account.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.removed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A device was deleted.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_name: { description: 'Name of the deleted device, captured at deletion time. The device record no longer exists when this event fires, so the name is preserved here. Null when the device had no resolvable name.', nullable: true, type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.deleted'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'Seam detected that a device is using a third-party integration that will interfere with Seam device management.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.third_party_integration_detected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'Seam detected that a device is no longer using a third-party integration that was interfering with Seam device management.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.third_party_integration_no_longer_detected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A [Salto device](https://www.seam.co/docs/device-and-system-integration-guides/salto-locks) activated privacy mode.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.salto.privacy_mode_activated'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A [Salto device](https://www.seam.co/docs/device-and-system-integration-guides/salto-locks) deactivated privacy mode.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.salto.privacy_mode_deactivated'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'Seam detected a flaky device connection.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.connection_became_flaky'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/devices', }, { description: 'Seam detected that a previously-flaky device connection stabilized.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.connection_stabilized'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A third-party subscription is required to use all device features.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.error.subscription_required'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A third-party subscription is active or no longer required to use all device features.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.error.subscription_required.resolved'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'An accessory keypad was connected to a device.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.accessory_keypad_connected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'An accessory keypad was disconnected from a device.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.accessory_keypad_disconnected'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/devices', }, { description: 'Extended periods of noise or noise exceeding a [threshold](https://www.seam.co/docs/capability-guides/noise-sensors#what-is-a-threshold) were detected.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['noise_sensor.noise_threshold_triggered'], type: 'string', }, minut_metadata: { additionalProperties: {}, description: 'Metadata from Minut.', type: 'object', }, noise_level_decibels: { description: 'Detected noise level in decibels.', format: 'float', type: 'number', }, noise_level_nrs: { description: 'Detected noise level in Noiseaware Noise Risk Score (NRS).', format: 'float', type: 'number', }, noise_threshold_id: { description: 'ID of the noise threshold that was triggered.', format: 'uuid', type: 'string', }, noise_threshold_name: { description: 'Name of the noise threshold that was triggered.', type: 'string', }, noiseaware_metadata: { additionalProperties: {}, description: 'Metadata from Noiseaware.', type: 'object', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/noise_sensors/noise_thresholds', }, { description: 'A [lock](https://www.seam.co/docs/low-level-apis/smart-locks) was locked.', properties: { access_code_id: { description: 'ID of the access code that was used to lock the device.', format: 'uuid', type: 'string', }, access_code_is_managed: { description: 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.', type: 'boolean', }, acs_entrance_id: { description: 'ID of the ACS entrance associated with the lock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_system_id: { description: 'ID of the ACS system associated with the lock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_user_id: { description: 'ID of the ACS user associated with the lock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, action_attempt_id: { description: 'ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt).', format: 'uuid', type: 'string', }, code: { description: '\n Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.locked'], type: 'string' }, is_via_bluetooth: { description: "\n Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ", type: 'boolean', }, is_via_nfc: { description: '\n Whether the lock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.\n ', type: 'boolean', }, method: { description: 'Method by which the lock was locked. `keycode`: an access code was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or button press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by an auto-relock timer. `unknown`: could not be determined.', enum: [ 'keycode', 'manual', 'automatic', 'unknown', 'remote', 'card', 'mobile_key', ], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, user_identity_id: { description: 'ID of the user identity associated with the lock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'method', ], type: 'object', 'x-route-path': '/locks', }, { description: 'A [lock](https://www.seam.co/docs/low-level-apis/smart-locks) was unlocked.', properties: { access_code_id: { description: 'ID of the access code that was used to unlock the affected device.', format: 'uuid', type: 'string', }, access_code_is_managed: { description: 'Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.', type: 'boolean', }, acs_entrance_id: { description: 'ID of the ACS entrance associated with the unlock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_system_id: { description: 'ID of the ACS system associated with the unlock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_user_id: { description: 'ID of the ACS user associated with the unlock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, action_attempt_id: { description: 'ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt).', format: 'uuid', type: 'string', }, code: { description: '\n Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.unlocked'], type: 'string' }, is_via_bluetooth: { description: "\n Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ", type: 'boolean', }, is_via_nfc: { description: '\n Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.\n ', type: 'boolean', }, method: { description: 'Method by which the lock was unlocked. `keycode`: an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or handle press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by a time-based schedule. `unknown`: could not be determined.', enum: [ 'keycode', 'manual', 'automatic', 'unknown', 'remote', 'card', 'mobile_key', ], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, user_identity_id: { description: 'ID of the user identity associated with the unlock event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', 'method', ], type: 'object', 'x-route-path': '/locks', }, { description: 'The [lock](https://www.seam.co/docs/low-level-apis/smart-locks) denied access to a user after one or more consecutive invalid attempts to unlock the device.', properties: { access_code_id: { description: 'ID of the access code that was used in the unlock attempts.', format: 'uuid', type: 'string', }, acs_entrance_id: { description: 'ID of the ACS entrance associated with the access-denied event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_system_id: { description: 'ID of the ACS system associated with the access-denied event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, acs_user_id: { description: 'ID of the ACS user associated with the access-denied event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.access_denied'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, reason: { description: 'Why access was denied, when the provider reports a determinable cause. Omitted when unknown.', properties: { message: { description: 'Human-readable explanation of why access was denied.', type: 'string', }, reason_code: { description: 'Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.', enum: [ 'unknown_code', 'expired_code', 'blocklisted_code', 'too_many_attempts', 'blocked_by_privacy_mode', 'credential_error', 'connection_error', ], type: 'string', }, }, required: ['reason_code', 'message'], type: 'object', }, user_identity_id: { description: 'ID of the user identity associated with the access-denied event.', format: 'uuid', type: 'string', 'x-undocumented': 'Unreleased.', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/locks', }, { description: 'The [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that its bolt is jammed.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.jammed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/locks', }, { description: 'The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was opened.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.door_opened'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/locks', }, { description: 'The door sensor of the [lock](https://www.seam.co/docs/low-level-apis/smart-locks) reported that the door was closed.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['lock.door_closed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/locks', }, { description: 'A thermostat [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) was activated.', properties: { climate_preset_key: { description: 'Key of the climate preset that was activated.', type: 'string', }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.climate_preset_activated'], type: 'string', }, is_fallback_climate_preset: { description: 'Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat.', type: 'boolean', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, thermostat_schedule_id: { description: 'ID of the thermostat schedule that prompted the affected climate preset to be activated.', format: 'uuid', nullable: true, type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'thermostat_schedule_id', 'climate_preset_key', 'is_fallback_climate_preset', ], type: 'object', 'x-route-path': '/thermostats', }, { description: 'A [thermostat](https://www.seam.co/docs/capability-guides/thermostats) was adjusted manually.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.manually_adjusted'], type: 'string', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, method: { description: 'Method used to adjust the affected thermostat manually. `seam` indicates that the Seam API, Seam CLI, or Seam Console was used to adjust the thermostat.', enum: ['seam', 'external'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'method', ], type: 'object', 'x-route-path': '/thermostats', }, { description: 'A [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) when a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends, because the thermostat was offline shortly before the scheduled time. While the thermostat stays offline, the thermostat schedule carries a `climate_preset_activation_may_fail` warning until the scheduled time.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_errors: { description: 'Errors associated with the connected account.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, connected_account_warnings: { description: 'Warnings associated with the connected account.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_errors: { description: 'Errors associated with the device.', items: { description: 'Error associated with the resource, including the error code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', }, type: 'array', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_warnings: { description: 'Warnings associated with the device.', items: { description: 'Warning associated with the resource, including the warning code, message, and creation timestamp.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: [ 'thermostat_schedule.climate_preset_activation_may_fail', ], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, thermostat_schedule_ends_at: { description: 'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, thermostat_schedule_id: { description: 'ID of the thermostat schedule whose climate preset activation may fail.', format: 'uuid', type: 'string', }, thermostat_schedule_starts_at: { description: 'Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'thermostat_schedule_id', 'thermostat_schedule_starts_at', 'thermostat_schedule_ends_at', 'connected_account_errors', 'connected_account_warnings', 'device_errors', 'device_warnings', ], type: 'object', 'x-route-path': '/thermostats', }, { description: "A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) temperature reading exceeded the set [threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).", properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.temperature_threshold_exceeded'], type: 'string', }, lower_limit_celsius: { description: 'Lower temperature limit, in °C, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, lower_limit_fahrenheit: { description: 'Lower temperature limit, in °F, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Temperature, in °C, reported by the affected thermostat.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Temperature, in °F, reported by the affected thermostat.', format: 'float', type: 'number', }, upper_limit_celsius: { description: 'Upper temperature limit, in °C, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, upper_limit_fahrenheit: { description: 'Upper temperature limit, in °F, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', 'upper_limit_celsius', 'upper_limit_fahrenheit', 'lower_limit_celsius', 'lower_limit_fahrenheit', ], type: 'object', 'x-route-path': '/thermostats', }, { description: "A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) temperature reading no longer exceeds the set [threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).", properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.temperature_threshold_no_longer_exceeded'], type: 'string', }, lower_limit_celsius: { description: 'Lower temperature limit, in °C, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, lower_limit_fahrenheit: { description: 'Lower temperature limit, in °F, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Temperature, in °C, reported by the affected thermostat.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Temperature, in °F, reported by the affected thermostat.', format: 'float', type: 'number', }, upper_limit_celsius: { description: 'Upper temperature limit, in °C, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, upper_limit_fahrenheit: { description: 'Upper temperature limit, in °F, defined by the set threshold.', format: 'float', nullable: true, type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', 'upper_limit_celsius', 'upper_limit_fahrenheit', 'lower_limit_celsius', 'lower_limit_fahrenheit', ], type: 'object', 'x-route-path': '/thermostats', }, { description: "A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) temperature reading is within 1 °C of the configured cooling or heating [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).", properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, desired_temperature_celsius: { description: "Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point.", format: 'float', type: 'number', }, desired_temperature_fahrenheit: { description: "Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point.", format: 'float', type: 'number', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.temperature_reached_set_point'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Temperature, in °C, reported by the affected thermostat.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Temperature, in °F, reported by the affected thermostat.', format: 'float', type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', ], type: 'object', 'x-route-path': '/thermostats', }, { description: "A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) reported temperature changed by at least 1 °C.", properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['thermostat.temperature_changed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Temperature, in °C, reported by the affected thermostat.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Temperature, in °F, reported by the affected thermostat.', format: 'float', type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', ], type: 'object', 'x-route-path': '/thermostats', }, { description: 'The water temperature of a pool or spa changed by at least 1 °C. Seam reports water temperature only while the water is circulating.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['pool.temperature_changed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Water temperature, in °C, reported by the affected pool or spa.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Water temperature, in °F, reported by the affected pool or spa.', format: 'float', type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', ], type: 'object', 'x-route-path': '/pools', 'x-undocumented': 'Unreleased.', }, { description: 'A heated pool or spa reached its heating set point: heating is on and the water temperature is within 1 °C of the set point or above it. Fires again only after the water falls more than 1 °C below the set point or heating is turned off.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, desired_temperature_celsius: { description: 'Desired water temperature, in °C, defined by the heating set point of the affected pool or spa.', format: 'float', type: 'number', }, desired_temperature_fahrenheit: { description: 'Desired water temperature, in °F, defined by the heating set point of the affected pool or spa.', format: 'float', type: 'number', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['pool.temperature_reached_set_point'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, temperature_celsius: { description: 'Water temperature, in °C, reported by the affected pool or spa.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Water temperature, in °F, reported by the affected pool or spa.', format: 'float', type: 'number', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'temperature_celsius', 'temperature_fahrenheit', 'desired_temperature_celsius', 'desired_temperature_fahrenheit', ], type: 'object', 'x-route-path': '/pools', 'x-undocumented': 'Unreleased.', }, { description: 'The heating mode or heating set point of a pool or spa changed.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, controller_mode: { description: 'New heating mode of the affected pool or spa. Present only if the mode changed.', enum: ['heat', 'off'], type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['pool.manually_adjusted'], type: 'string' }, heating_set_point_celsius: { description: 'New heating set point, in °C, of the affected pool or spa. Present only if the set point changed.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'New heating set point, in °F, of the affected pool or spa. Present only if the set point changed.', format: 'float', type: 'number', }, method: { description: "Method used to adjust the affected pool or spa. `seam` indicates that the Seam API, Seam CLI, or Seam Console was used. `external` indicates a change made outside Seam, such as in the manufacturer's app or on the controller panel.", enum: ['seam', 'external'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'method', ], type: 'object', 'x-route-path': '/pools', 'x-undocumented': 'Unreleased.', }, { description: 'The name of a device was changed.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, device_name: { description: 'The new name of the affected device.', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.name_changed'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', 'device_name', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A camera was activated, for example, by motion detection. For Ring cameras, this event is available only in the Seam Console, not through the API or webhooks.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['camera.activated'], type: 'string' }, image_url: { description: 'URL to a thumbnail image captured at the time of activation.', format: 'uri', type: 'string', }, is_motion_detected: { description: 'Whether motion detection activated the camera, if known.', type: 'boolean', }, media_ids: { description: 'IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one.', items: { format: 'uuid', type: 'string' }, type: 'array', }, motion_sub_type: { description: 'Sub-type of motion detected, if available.', enum: ['human', 'vehicle', 'package', 'other'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, video_url: { description: 'URL to a short video clip captured at the time of activation.', format: 'uri', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'A doorbell button was pressed on a device. For Ring cameras, this event is available only in the Seam Console, not through the API or webhooks.', properties: { connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, connected_account_id: { description: 'ID of the connected account associated with the event.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'The customer key associated with the device, if any.', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['device.doorbell_rang'], type: 'string' }, image_url: { description: 'URL to a thumbnail image captured at the time the doorbell was pressed.', format: 'uri', type: 'string', }, media_ids: { description: 'IDs of the media, such as a video clip and a thumbnail image, captured when the doorbell was pressed. Use `/media/get` to retrieve each one.', items: { format: 'uuid', type: 'string' }, type: 'array', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, video_url: { description: 'URL to a short video clip captured at the time the doorbell was pressed.', format: 'uri', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'connected_account_id', 'event_type', ], type: 'object', 'x-route-path': '/devices', }, { description: 'An [enrollment automation](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system) was deleted.', properties: { created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, enrollment_automation_id: { description: 'ID of the affected enrollment automation.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['enrollment_automation.deleted'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'enrollment_automation_id', 'event_type', ], type: 'object', 'x-end-of-life': '2026-11-24', 'x-route-path': '/user_identities/enrollment_automations', 'x-undocumented': 'Enrollment automations are deprecated and will be removed.', }, { description: 'A phone device was deactivated.', properties: { created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata of the device; present when device_id is provided.', type: 'object', }, device_id: { description: 'ID of the affected phone device.', format: 'uuid', type: 'string', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { enum: ['phone.deactivated'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'device_id', 'event_type', ], type: 'object', 'x-route-path': '/phones', }, { description: 'A device was added or removed from a space.', properties: { acs_entrance_ids: { description: 'IDs of all ACS entrances currently attached to the space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_ids: { description: 'IDs of all devices currently attached to the space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { description: 'Type of the event.', enum: ['space.device_membership_changed'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, space_id: { description: 'ID of the affected space.', format: 'uuid', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'space_id', 'event_type', 'device_ids', 'acs_entrance_ids', ], type: 'object', 'x-route-path': '/spaces', }, { description: 'A space was created.', properties: { acs_entrance_ids: { description: 'IDs of all ACS entrances attached to the space when it was created.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_ids: { description: 'IDs of all devices attached to the space when it was created.', items: { format: 'uuid', type: 'string' }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { description: 'Type of the event.', enum: ['space.created'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, space_id: { description: 'ID of the affected space.', format: 'uuid', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'space_id', 'event_type', 'device_ids', 'acs_entrance_ids', ], type: 'object', 'x-route-path': '/spaces', }, { description: 'A space was deleted.', properties: { acs_entrance_ids: { description: 'IDs of all ACS entrances currently attached to the space when it was deleted.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', type: 'string', }, device_ids: { description: 'IDs of all devices attached to the space when it was deleted.', items: { format: 'uuid', type: 'string' }, type: 'array', }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', type: 'string', }, event_id: { description: 'ID of the event.', format: 'uuid', type: 'string', }, event_type: { description: 'Type of the event.', enum: ['space.deleted'], type: 'string', }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', type: 'string', }, space_id: { description: 'ID of the affected space.', format: 'uuid', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the event.', format: 'uuid', type: 'string', }, }, required: [ 'event_id', 'workspace_id', 'created_at', 'occurred_at', 'event_description', 'space_id', 'event_type', 'device_ids', 'acs_entrance_ids', ], type: 'object', 'x-route-path': '/spaces', }, ], 'x-route-path': '/events', }, instant_key: { description: 'Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app.\n\nThere’s no account to create. Your user just taps a link and gets a lightweight, native-feeling experience. On iOS, the key opens in an App Clip, so there’s no app to install. On Android, Google has discontinued Google Play Instant, so the first time your user opens an Instant Key they must install the Seam Instant Key app from the Google Play Store. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work.', properties: { client_session_id: { description: 'ID of the client session associated with the Instant Key.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the Instant Key was created.', format: 'date-time', type: 'string', }, customization: { description: 'Customization applied to the Instant Key UI.', properties: { instant_key_theme: { description: "Theme for the Instant Keys apps, from the customization profile's `instant_key_theme`. Omitted when the profile has none, in which case the apps use the Seam default theme.", properties: { dark: { additionalProperties: false, description: 'Dark-mode colors, in the same form as `light`. When omitted, dark mode uses the Seam default with your `primary`, `primary_foreground`, and `ring` colors.', properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, font_family: { description: 'Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace.', maxLength: 200, type: 'string', }, key_card_texture: { description: 'Whether the key card shows its default texture over the key card gradient, or the gradient alone.', enum: ['default', 'none'], type: 'string', }, light: { additionalProperties: false, description: "Light-mode colors, named after shadcn/ui's CSS variables in snake_case. Values are CSS colors in hex, `oklch()`, `rgb()`, or `hsl()` form. Colors you omit use the Seam default.", properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, radius: { description: 'Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`.', pattern: '^(?:\\d+\\.?\\d*|\\.\\d+)(?:rem|px)?$', type: 'string', }, }, type: 'object', 'x-undocumented': 'Unreleased.', }, logo_url: { description: 'URL of the logo displayed on the Instant Key.', format: 'uri', type: 'string', }, primary_color: { description: 'Primary color used in the Instant Key UI.', type: 'string', }, secondary_color: { description: 'Secondary color used in the Instant Key UI.', type: 'string', }, }, type: 'object', }, customization_profile_id: { description: 'ID of the customization profile associated with the Instant Key.', format: 'uuid', type: 'string', }, expires_at: { description: 'Date and time at which the Instant Key expires.', format: 'date-time', type: 'string', }, instant_key_id: { description: 'ID of the Instant Key.', format: 'uuid', type: 'string', }, instant_key_url: { description: 'Shareable URL for the Instant Key. Use the URL to deliver the Instant Key to your user through a link in a text message or email or by embedding it in your web app.', format: 'uri', type: 'string', }, user_identity_id: { description: 'ID of the user identity associated with the Instant Key.', format: 'uuid', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains the Instant Key.', format: 'uuid', type: 'string', }, }, required: [ 'instant_key_id', 'workspace_id', 'created_at', 'instant_key_url', 'client_session_id', 'user_identity_id', 'expires_at', ], type: 'object', 'x-route-path': '/instant_keys', }, magic_link: { description: "Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.\n\nWith Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.\n\nSeam hosts these flows, handling everything from account connection and device mapping to full-featured device control.", properties: { created_at: { description: 'Date and time at which the magic link was created.', format: 'date-time', type: 'string', }, customer_key: { description: 'Customer key for the magic link.', type: 'string', }, expires_at: { description: 'Date and time at which the magic link expires.', format: 'date-time', type: 'string', }, url: { description: 'URL for the magic link.', format: 'uri', type: 'string', }, workspace_id: { description: 'ID of the workspace associated with the magic link.', format: 'uuid', type: 'string', }, }, required: [ 'url', 'customer_key', 'expires_at', 'workspace_id', 'created_at', ], type: 'object', 'x-route-path': '/unstable_partner/building_blocks', 'x-undocumented': 'Unreleased.', }, media: { description: 'Represents a piece of media, such as a video clip or a thumbnail image, that a device captured for an event. Media is in beta.', properties: { content_type: { description: 'MIME type of the media, such as `video/mp4` or `image/jpeg`.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the media was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device that captured the media.', format: 'uuid', nullable: true, type: 'string', }, event_id: { description: 'ID of the event that the media belongs to.', format: 'uuid', nullable: true, type: 'string', }, expires_at: { description: 'Date and time at which the media stops being available. Null when Seam does not know when the media expires.', format: 'date-time', nullable: true, type: 'string', }, media_id: { description: 'ID of the media.', format: 'uuid', type: 'string', }, media_type: { description: 'Type of the media: a video clip or a still image.', enum: ['video', 'image'], type: 'string', }, status: { description: 'Status of the media. `pending` means that Seam is still retrieving the media. `available` means that `url` can be used to download it. `unavailable` means that no media exists for the event, and `failed` means that Seam could not retrieve it.', enum: ['pending', 'available', 'unavailable', 'failed'], type: 'string', }, url: { description: 'Short-lived URL from which you can download the media. Null unless `status` is `available`. The URL expires after about five minutes. Call `/media/get` again for a new URL.', format: 'uri', nullable: true, type: 'string', }, video_codec: { description: 'Video codec used to encode the media. Only present for video media. `hevc` (H.265) playback support varies by browser and device, so check compatibility before assuming a clip plays inline.', enum: ['h264', 'hevc'], type: 'string', }, workspace_id: { description: 'ID of the workspace that contains the media.', format: 'uuid', type: 'string', }, }, required: [ 'media_id', 'workspace_id', 'device_id', 'event_id', 'media_type', 'content_type', 'status', 'url', 'expires_at', 'created_at', ], type: 'object', 'x-route-path': '/media', }, noise_threshold: { description: 'Represents a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.', properties: { device_id: { description: 'Unique identifier for the device that contains the noise threshold.', format: 'uuid', type: 'string', }, ends_daily_at: { description: 'Time at which the noise threshold should become inactive daily.', type: 'string', }, name: { description: 'Name of the noise threshold.', type: 'string' }, noise_threshold_decibels: { description: 'Noise level in decibels for the noise threshold.', format: 'float', type: 'number', }, noise_threshold_id: { description: 'Unique identifier for the noise threshold.', format: 'uuid', type: 'string', }, noise_threshold_nrs: { description: 'Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://www.seam.co/docs/device-and-system-integration-guides/noiseaware-sensors).', format: 'float', type: 'number', }, starts_daily_at: { description: 'Time at which the noise threshold should become active daily.', type: 'string', }, }, required: [ 'noise_threshold_id', 'device_id', 'name', 'starts_daily_at', 'ends_daily_at', 'noise_threshold_decibels', ], type: 'object', 'x-route-path': '/noise_sensors/noise_thresholds', }, pagination: { description: 'Information about the current page of results.', properties: { has_next_page: { description: 'Indicates whether there is another page of results after this one.', type: 'boolean', }, next_page_cursor: { description: 'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.', nullable: true, type: 'string', }, next_page_url: { description: 'URL to get the next page of results.', format: 'uri', nullable: true, type: 'string', }, }, required: ['next_page_cursor', 'has_next_page', 'next_page_url'], type: 'object', }, phone: { description: "Represents an app user's mobile phone.", properties: { created_at: { description: 'Date and time at which the phone was created.\n ', format: 'date-time', type: 'string', }, custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Optional [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone.\n ', type: 'object', }, device_id: { description: 'ID of the phone.\n ', format: 'uuid', type: 'string', }, device_type: { description: 'Type of the phone device, such as `ios_phone` or `android_phone`.', enum: ['ios_phone', 'android_phone'], type: 'string', }, display_name: { description: 'Display name of the phone. Defaults to `nickname` (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the phone easily, especially when there are numerous phones.\n ', type: 'string', }, errors: { description: 'Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Salto site user limit has been reached.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { description: "Indicates that the provider's system to which this device belongs is not letting Seam act on it, so Seam cannot manage access codes or unlock the device. The error message says which of three causes applies. Seam's integration user may not have sufficient permissions on the provider's system, or may have been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. The provider account or site may not have a valid subscription with the provider: set up or renew that subscription with the provider. Or the provider may have rejected the credential Seam uses to operate the device's hub: contact Seam support to re-activate it.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { deprecated: true, description: 'Indicates that the device is offline.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_offline'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-deprecated': 'Use `device_disconnected` instead.', 'x-resource-type': 'device', }, { description: 'Indicates that the device has been removed.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_removed'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the hub is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['hub_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the device is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['empty_backup_access_code_pool'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the user is not authorized to use the August lock.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['august_lock_not_authorized'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['low_battery'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: 'Indicates that device credentials are missing.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['missing_device_credentials'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the auxiliary heat is running.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['auxiliary_heat_running'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that a subscription is required to connect.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['subscription_required'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, nickname: { description: 'Optional nickname to describe the phone, settable through Seam.\n ', type: 'string', }, properties: { description: 'Properties of the phone.', properties: { assa_abloy_credential_service_metadata: { description: 'ASSA ABLOY Credential Service metadata for the phone.', properties: { endpoints: { description: 'Endpoints associated with the phone.', items: { properties: { endpoint_id: { description: 'ID of the associated endpoint.', type: 'string', }, is_active: { description: 'Indicated whether the endpoint is active.', type: 'boolean', }, }, type: 'object', }, type: 'array', }, has_active_endpoint: { description: 'Indicates whether the credential service has active endpoints associated with the phone.', type: 'boolean', }, }, type: 'object', }, salto_space_credential_service_metadata: { description: 'Salto Space credential service metadata for the phone.', properties: { has_active_phone: { description: 'Indicates whether the credential service has an active associated phone.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, warnings: { description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the backup access code is unhealthy.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['partial_backup_access_code_pool'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that there are too many backup codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['many_active_backup_codes'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party integration has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['third_party_integration_detected'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Remote Unlock feature is not enabled in the settings."', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_lock_gateway_unlocking_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the gateway signal is weak.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_weak_gateway_signal'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device is in power saving mode and may have limited functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['power_saving_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the temperature threshold has been exceeded.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['temperature_threshold_exceeded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that the device appears to be unresponsive.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_communication_degraded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that a scheduled maintenance window has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['scheduled_maintenance_window'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the device has a flaky connection.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_has_flaky_connection'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Salto KS lock is in Office Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_office_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { deprecated: true, description: 'Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `privacy_mode` instead.', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_almost_reached'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_lock_access_code_support_removed'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that an unknown issue occurred while syncing the state of the phone with the provider. This issue may affect the proper functioning of the phone.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_phone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'phones', }, { description: 'Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['lockly_time_zone_not_configured'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ultraloq_time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_mismatch'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['two_n_device_missing_timezone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['hub_required_for_additional_capabilities'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['service_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-undocumented': 'Unreleased.', 'x-variant-group-key': 'pools', }, { description: 'Indicates a provider-specific issue that may affect device functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['provider_issue'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the key is in a locker that does not support the access codes API.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['keynest_unsupported_locker'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad exists, but is not linked to the Igloohome Bridge. Online access code programming will fail until the keypad is linked to the Igloohome Bridge in the Igloohome app.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_setup_required'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_low_battery'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about two weeks of battery life remaining or the provider otherwise recommends replacing the lock's batteries soon.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['battery_replacement_recommended'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unreliable_online_status'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.', properties: { active_access_code_count: { description: 'Number of active access codes on the device when the warning was set.', type: 'integer', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, max_active_access_code_count: { description: 'Maximum number of active access codes supported by the device.', type: 'integer', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['max_access_codes_reached'], type: 'string', }, }, required: [ 'message', 'created_at', 'warning_code', 'active_access_code_count', 'max_active_access_code_count', ], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party subscription is required to enable additional device capabilities.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'subscription_required_for_additional_capabilities', ], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { deprecated: true, description: "Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['cloud_recording_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `subscription_required_for_additional_capabilities`.', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, workspace_id: { description: 'ID of the workspace that contains the phone.\n ', format: 'uuid', type: 'string', }, }, required: [ 'device_id', 'display_name', 'workspace_id', 'created_at', 'custom_metadata', 'errors', 'warnings', 'device_type', 'properties', ], type: 'object', 'x-property-groups': { phones: { name: 'Phones' } }, 'x-route-path': '/phones', }, phone_registration: { description: 'Represents a mobile phone registration.', properties: { is_being_activated: { description: 'Indicates whether the phone is being activated.', type: 'boolean', }, phone_registration_id: { description: 'Registration ID for the phone.', type: 'string', }, provider_name: { description: 'Provider name for the phone.', nullable: true, type: 'string', }, provider_state: { additionalProperties: {}, description: 'Provider state for the phone.', nullable: true, type: 'object', }, }, required: [ 'phone_registration_id', 'provider_state', 'provider_name', 'is_being_activated', ], type: 'object', 'x-route-path': '/seam/mobile_sdk/v1/phone_sessions', 'x-undocumented': 'Seam Mobile SDK only.', }, phone_session: { description: 'Represents a mobile phone session.', properties: { is_sandbox_workspace: { description: 'Whether the workspace is in sandbox mode.', type: 'boolean', }, provider_sessions: { description: 'Phone provider sessions.', items: { description: 'Phone provider session.', properties: { acs_credentials: { description: 'Access system credentials associated with the phone provider session.', items: { description: 'Means by which an [access control system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `acs_credential` object represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nAn access control system generally uses digital means of access to authorize a user trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.\n\nFor each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type.\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { nullable: true, type: 'string' }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_entrances: { items: { description: 'Represents an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nIn an access control system, an entrance is a secured door, gate, zone, or other method of entry. You can list details for all the `acs_entrance` resources in your workspace or get these details for a specific `acs_entrance`. You can also list all entrances associated with a specific credential, and you can list all credentials associated with a specific entrance.', properties: { acs_entrance_id: { description: 'ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { actions: { description: 'Actions the gadget exposes (for example, open).', items: { properties: { id: { description: 'ID of the gadget action.', type: 'string', }, name: { description: 'Name of the gadget action.', type: 'string', }, }, type: 'object', }, type: 'array', }, gadget_id: { description: 'ID of the Akiles gadget.', type: 'string', }, site_id: { description: 'ID of the Akiles site the gadget belongs to.', type: 'string', }, site_name: { description: 'Name of the Akiles site the gadget belongs to.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { door_name: { description: 'Name of the door in the Vostio access system.', type: 'string', }, door_number: { description: 'Number of the door in the Vostio access system.', format: 'float', type: 'number', }, door_type: { description: 'Type of the door in the Vostio access system.', enum: [ 'CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator', ], type: 'string', }, pms_id: { description: 'PMS ID of the door in the Vostio access system.', type: 'string', }, stand_open: { description: 'Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system.', type: 'boolean', }, }, type: 'object', }, avigilon_alta_metadata: { description: 'Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { entry_name: { description: 'Entry name for an Avigilon Alta system.', type: 'string', }, entry_relays_total_count: { description: 'Total count of entry relays for an Avigilon Alta system.', format: 'float', type: 'number', }, org_name: { description: 'Organization name for an Avigilon Alta system.', type: 'string', }, site_id: { description: 'Site ID for an Avigilon Alta system.', format: 'float', type: 'number', }, site_name: { description: 'Site name for an Avigilon Alta system.', type: 'string', }, zone_id: { description: 'Zone ID for an Avigilon Alta system.', format: 'float', type: 'number', }, zone_name: { description: 'Zone name for an Avigilon Alta system.', type: 'string', }, }, type: 'object', }, brivo_metadata: { description: 'Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_id: { description: 'ID of the access point in the Brivo access system.', type: 'string', }, site_id: { description: 'ID of the site that the access point belongs to.', format: 'float', type: 'number', }, site_name: { description: 'Name of the site that the access point belongs to.', type: 'string', }, }, type: 'object', }, can_belong_to_reservation: { description: 'Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.', type: 'boolean', }, can_unlock_with_card: { description: 'Indicates whether the ACS entrance can be unlocked with card credentials.', type: 'boolean', }, can_unlock_with_cloud_key: { description: 'Indicates whether the ACS entrance can be unlocked with cloud key credentials.', type: 'boolean', }, can_unlock_with_code: { description: 'Indicates whether the ACS entrance can be unlocked with pin codes.', type: 'boolean', }, can_unlock_with_mobile_key: { description: 'Indicates whether the ACS entrance can be unlocked with mobile key credentials.', type: 'boolean', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', type: 'string', }, dormakaba_ambiance_metadata: { description: 'dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_name: { description: 'Name of the access point in the dormakaba Ambiance access system.', type: 'string', }, }, type: 'object', }, dormakaba_community_metadata: { description: 'dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { access_point_profile: { description: 'Type of access point profile in the dormakaba Community access system.', type: 'string', }, }, type: 'object', }, errors: { description: 'Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', items: { description: 'Error associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was removed from the connected account, so Seam can no longer sync it.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['entrance_removed'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'created_at', 'message', 'error_code', ], type: 'object', 'x-resource-type': 'acs_entrance', }, ], }, type: 'array', }, hotek_metadata: { description: 'Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { common_area_name: { description: 'Display name of the entrance.', type: 'string', }, common_area_number: { description: 'Display name of the entrance.', type: 'string', }, room_number: { description: 'Room number of the entrance.', type: 'string', }, }, type: 'object', }, is_locked: { description: 'Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked.', type: 'boolean', }, latch_metadata: { description: 'Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { accessibility_type: { description: 'Accessibility type in the Latch access system.', type: 'string', }, door_name: { description: 'Name of the door in the Latch access system.', type: 'string', }, door_type: { description: 'Type of the door in the Latch access system.', type: 'string', }, is_connected: { description: 'Indicates whether the entrance is connected.', type: 'boolean', }, }, type: 'object', }, salto_ks_metadata: { description: 'Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { battery_level: { description: 'Battery level of the door access device.', type: 'string', }, door_name: { description: 'Name of the door in the Salto KS access system.', type: 'string', }, intrusion_alarm: { description: 'Indicates whether an intrusion alarm is active on the door.', type: 'boolean', }, left_open_alarm: { description: 'Indicates whether the door is left open.', type: 'boolean', }, lock_type: { description: 'Type of the lock in the Salto KS access system.', type: 'string', }, locked_state: { description: 'Locked state of the door in the Salto KS access system.', type: 'string', }, online: { description: 'Indicates whether the door access device is online.', type: 'boolean', }, privacy_mode: { description: 'Indicates whether privacy mode is enabled for the lock.', type: 'boolean', }, }, type: 'object', }, salto_space_metadata: { description: 'Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { audit_on_keys: { description: 'Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system.', type: 'boolean', }, door_description: { description: 'Description of the door in the Salto Space access system.', type: 'string', }, door_id: { description: 'Door ID in the Salto Space access system.', type: 'string', }, door_name: { description: 'Name of the door in the Salto Space access system.', type: 'string', }, room_description: { description: 'Description of the room in the Salto Space access system.', type: 'string', }, room_name: { description: 'Name of the room in the Salto Space access system.', type: 'string', }, }, type: 'object', }, space_ids: { description: 'IDs of the spaces that the entrance is in.', items: { format: 'uuid', type: 'string' }, type: 'array', }, visionline_metadata: { description: 'Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', properties: { door_category: { description: 'Category of the door in the Visionline access system.', enum: [ 'entrance', 'guest', 'elevator reader', 'common', 'common (PMS)', ], type: 'string', }, door_name: { description: 'Name of the door in the Visionline access system.', type: 'string', }, profiles: { description: 'Profile for the door in the Visionline access system.', items: { properties: { visionline_door_profile_id: { description: 'Door profile ID in the Visionline access system.', type: 'string', }, visionline_door_profile_type: { description: 'Door profile type in the Visionline access system.', enum: ['BLE', 'commonDoor', 'touch'], type: 'string', }, }, type: 'object', }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', items: { description: 'Warning associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'salto_ks_entrance_access_code_support_removed', ], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['entrance_shares_zone'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['entrance_setup_required'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { deprecated: true, description: 'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_privacy_mode'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', 'x-deprecated': 'Use `privacy_mode` instead.', }, { description: 'Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['privacy_mode'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, }, required: [ 'acs_system_id', 'acs_entrance_id', 'space_ids', 'created_at', 'display_name', 'connected_account_id', 'errors', 'warnings', ], type: 'object', 'x-route-path': '/acs/entrances', }, type: 'array', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { description: 'Indicates whether Seam manages the credential.', enum: [true], type: 'boolean', }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', 'acs_credential_id', 'acs_entrances', ], type: 'object', 'x-route-path': '/acs/credentials', }, type: 'array', }, phone_registration: { description: 'Represents a mobile phone registration.', properties: { is_being_activated: { description: 'Indicates whether the phone is being activated.', type: 'boolean', }, phone_registration_id: { description: 'Registration ID for the phone.', type: 'string', }, provider_name: { description: 'Provider name for the phone.', nullable: true, type: 'string', }, provider_state: { additionalProperties: {}, description: 'Provider state for the phone.', nullable: true, type: 'object', }, }, required: [ 'phone_registration_id', 'provider_state', 'provider_name', 'is_being_activated', ], type: 'object', 'x-route-path': '/seam/mobile_sdk/v1/phone_sessions', 'x-undocumented': 'Seam Mobile SDK only.', }, }, required: ['phone_registration', 'acs_credentials'], type: 'object', }, type: 'array', }, user_identity: { description: 'User identity.', properties: { acs_user_ids: { description: 'Array of access system user IDs associated with the user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the user identity was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the user identity.', minLength: 1, type: 'string', }, email_address: { description: 'Unique email address for the user identity.', format: 'email', nullable: true, type: 'string', }, errors: { description: 'Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { description: 'Errors associated with the user identity.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that there is an issue with an access system user associated with this user identity.', properties: { acs_system_id: { description: 'ID of the access system that the user identity is associated with.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that has an issue.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['issue_with_acs_user'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'created_at', 'message', 'error_code', 'acs_user_id', 'acs_system_id', ], type: 'object', 'x-resource-type': 'user_identity', }, ], }, type: 'array', }, full_name: { description: 'Full name of the user associated with the user identity.', minLength: 1, nullable: true, type: 'string', }, merged_user_identity_ids: { description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, merged_user_identity_keys: { description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { type: 'string' }, type: 'array', }, phone_number: { description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity.', format: 'uuid', type: 'string', }, user_identity_key: { description: 'Unique key for the user identity.', minLength: 1, nullable: true, type: 'string', }, warnings: { description: 'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { description: 'Warnings associated with the user identity.', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the user identity is currently being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the ACS user's profile does not match the user identity's profile", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'acs_user_profile_does_not_match_user_identity', ], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the user identity.', format: 'uuid', type: 'string', }, }, required: [ 'user_identity_id', 'user_identity_key', 'email_address', 'phone_number', 'display_name', 'full_name', 'merged_user_identity_ids', 'merged_user_identity_keys', 'created_at', 'workspace_id', 'errors', 'warnings', 'acs_user_ids', ], type: 'object', }, workspace_id: { description: 'Workspace ID.', type: 'string' }, }, required: [ 'provider_sessions', 'user_identity', 'workspace_id', 'is_sandbox_workspace', ], type: 'object', 'x-route-path': '/seam/mobile_sdk/v1/phone_sessions', 'x-undocumented': 'Seam Mobile SDK only.', }, space: { description: 'Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient.', properties: { acs_entrance_count: { description: 'Number of entrances in the space.', format: 'float', type: 'number', }, created_at: { description: 'Date and time at which the space was created.', format: 'date-time', type: 'string', }, customer_data: { additionalProperties: { nullable: true, type: 'string' }, description: 'Reservation/stay-related defaults for the space. Also carries the provider/PMS-supplied name under a `_name` key (e.g. `guesty_name`), which Seam preserves when you rename the space (read-only — managed by Seam).', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, customer_key: { description: 'Customer key associated with the space.', type: 'string', }, device_count: { description: 'Number of devices in the space.', format: 'float', type: 'number', }, display_name: { description: 'Display name for the space.', type: 'string', }, geolocation: { description: 'Geographic coordinates (latitude and longitude) of the space.', nullable: true, properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Name of the space.', type: 'string' }, parent_space_id: { format: 'uuid', type: 'string', 'x-undocumented': 'Only used internally.', }, parent_space_key: { type: 'string', 'x-undocumented': 'Only used internally.', }, space_id: { description: 'ID of the space.', format: 'uuid', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', type: 'string', }, warnings: { description: 'Warnings associated with the space.', items: { description: 'Warning associated with the space.', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that Seam could not apply the noise sensor automation to one or more noise sensors in the space, for example because their settings keep changing back after Seam re-applies it, Seam does not know the sensor's time zone yet, or the sensor is shared with spaces that configure it differently.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_ids: { description: 'IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation.', items: { format: 'uuid', type: 'string' }, type: 'array', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['noise_sensor_configuration_mismatch'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'device_ids', ], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace associated with the space.', format: 'uuid', type: 'string', }, }, required: [ 'space_id', 'workspace_id', 'name', 'display_name', 'created_at', 'device_count', 'acs_entrance_count', 'warnings', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/spaces', }, staff_member: { description: 'Represents a staff member for a specific customer.', properties: { building_keys: { description: 'List of unique identifiers for the buildings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'List of unique identifiers for the common areas the staff member is associated with.', items: { type: 'string' }, type: 'array', }, email_address: { description: 'Email address associated with the user identity.', type: 'string', }, facility_keys: { description: 'List of unique identifiers for the facilities the staff member is associated with.', items: { type: 'string' }, type: 'array', }, listing_keys: { description: 'List of unique identifiers for the listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, property_keys: { description: 'List of unique identifiers for the properties the staff member is associated with.', items: { type: 'string' }, type: 'array', }, property_listing_keys: { description: 'List of unique identifiers for the property listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, room_keys: { description: 'List of unique identifiers for the rooms the staff member is associated with.', items: { type: 'string' }, type: 'array', }, site_keys: { description: 'List of unique identifiers for the sites the staff member is associated with.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'List of unique identifiers for the spaces the staff member is associated with.', items: { type: 'string' }, type: 'array', }, staff_member_key: { description: 'Your unique identifier for the staff.', type: 'string', }, unit_keys: { description: 'List of unique identifiers for the units the staff member is associated with.', items: { type: 'string' }, type: 'array', }, }, required: ['name', 'staff_member_key'], type: 'object', 'x-route-path': '/seam/customer/v1/staff_members', 'x-undocumented': 'Internal resource for customer portals.', }, thermostat_daily_program: { description: 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.', properties: { created_at: { description: 'Date and time at which the thermostat daily program was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the thermostat device on which the thermostat daily program is configured.', format: 'uuid', type: 'string', }, name: { description: 'User-friendly name to identify the thermostat daily program.', nullable: true, type: 'string', }, periods: { description: 'Array of thermostat daily program periods.', items: { description: 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.', properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.', type: 'string', }, starts_at_time: { description: 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$', type: 'string', }, }, required: ['starts_at_time', 'climate_preset_key'], type: 'object', }, type: 'array', }, thermostat_daily_program_id: { description: 'ID of the thermostat daily program.', format: 'uuid', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains the thermostat daily program.', format: 'uuid', type: 'string', }, }, required: [ 'thermostat_daily_program_id', 'device_id', 'name', 'periods', 'workspace_id', 'created_at', ], type: 'object', 'x-route-path': '/thermostats/daily_programs', }, thermostat_schedule: { description: 'Represents a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://www.seam.co/docs/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.', properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', type: 'string', }, created_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, errors: { description: 'Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, is_override_allowed: { description: "Indicates whether a person at the thermostat can change the thermostat's settings after the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts.", type: 'boolean', }, max_override_period_minutes: { description: "Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", exclusiveMinimum: true, minimum: 0, nullable: true, type: 'integer', }, name: { description: 'User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', nullable: true, type: 'string', }, starts_at: { description: 'Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, thermostat_schedule_id: { description: 'ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', format: 'uuid', type: 'string', }, warnings: { description: 'Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', items: { description: 'Warning associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['climate_preset_activation_may_fail'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the thermostat schedule.', format: 'uuid', type: 'string', }, }, required: [ 'thermostat_schedule_id', 'device_id', 'name', 'climate_preset_key', 'starts_at', 'ends_at', 'workspace_id', 'created_at', 'errors', 'warnings', ], type: 'object', 'x-route-path': '/thermostats/schedules', }, unmanaged_access_code: { description: 'Represents an [unmanaged smart lock access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).\n\nAn access code is a code used for a keypad or pinpad device. Unlike physical keys, which can easily be lost or duplicated, PIN codes can be customized, tracked, and altered on the fly.\n\nWhen you create an access code on a device in Seam, it is created as a managed access code. Access codes that exist on a device that were not created through Seam are considered unmanaged codes. We strictly limit the operations that can be performed on unmanaged codes.\n\nPrior to using Seam to manage your devices, you may have used another lock management system to manage the access codes on your devices. Where possible, we help you keep any existing access codes on devices and transition those codes to ones managed by your Seam workspace.\n\nNot all providers support unmanaged access codes. The following providers do not support unmanaged access codes:\n\n- [Kwikset](https://www.seam.co/docs/device-and-system-integration-guides/kwikset-locks)', properties: { access_code_id: { description: 'Unique identifier for the access code.', format: 'uuid', type: 'string', }, cannot_be_managed: { description: 'Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations.', enum: [true], type: 'boolean', }, cannot_delete_unmanaged_access_code: { description: 'Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app.', enum: [true], type: 'boolean', }, code: { description: 'Code used for access. Typically, a numeric or alphanumeric string.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the access code was created.', format: 'date-time', type: 'string', }, device_id: { description: 'Unique identifier for the device associated with the access code.', format: 'uuid', type: 'string', }, display_status: { description: "Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device, or `Deleting` while the code is being removed from the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it.", type: 'string', }, dormakaba_oracode_metadata: { description: 'Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices.', nullable: true, properties: { is_cancellable: { description: 'Indicates whether the stay can be cancelled via the Dormakaba Oracode API.', type: 'boolean', }, is_early_checkin_able: { description: 'Indicates whether early check-in is available for this stay.', type: 'boolean', }, is_extendable: { description: 'Indicates whether the stay can be extended via the Dormakaba Oracode API.', type: 'boolean', }, is_overridable: { description: 'Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.', type: 'boolean', }, site_name: { description: 'Dormakaba Oracode site name associated with this access code.', type: 'string', }, stay_id: { description: 'Dormakaba Oracode stay ID associated with this access code.', format: 'float', type: 'number', }, user_level_id: { description: 'Dormakaba Oracode user level ID associated with this access code.', type: 'string', }, user_level_name: { description: 'Dormakaba Oracode user level name associated with this access code.', nullable: true, type: 'string', }, }, type: 'object', }, ends_at: { description: 'Date and time after which the time-bound access code becomes inactive.', format: 'date-time', nullable: true, type: 'string', }, errors: { description: 'Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['provider_issue'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Failed to set code on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_set_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Failed to remove code from device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_remove_from_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Duplicate access code detected on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['duplicate_code_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, managed_access_code_id: { description: 'ID of the managed access code that conflicts with this managed access code, when Seam can identify it.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, unmanaged_access_code_id: { description: 'ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.', format: 'uuid', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'No space for access code on device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['no_space_for_access_code_on_device'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.', properties: { change_type: { description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.", enum: ['modified', 'removed'], type: 'string', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['conflicting_external_modification'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, modified_fields: { description: 'List of fields that were changed externally, with their previous and new values.', items: { properties: { field: { description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).', type: 'string', }, from: { description: 'The previous value of the field.', nullable: true, type: 'string', }, to: { description: 'The new value of the field.', nullable: true, type: 'string', }, }, required: ['field', 'from', 'to'], type: 'object', }, type: 'array', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_code_inactive'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: "The code cannot be set on the device because it violates the device's code constraints (for example, its length, digits, or a too-simple value). The code will not be retried until you change it. See the device's `code_constraints` and `supported_code_lengths`.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['code_constraints_violated'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_issue'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', 'x-undocumented': 'Unreleased.', }, { description: "Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_update'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', 'x-undocumented': 'Unreleased.', }, { description: 'Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_delete'], type: 'string', }, is_access_code_error: { description: 'Indicates that this is an access code error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['message', 'is_access_code_error', 'error_code'], type: 'object', 'x-resource-type': 'access_code', }, { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Salto site user limit has been reached.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { description: "Indicates that the provider's system to which this device belongs is not letting Seam act on it, so Seam cannot manage access codes or unlock the device. The error message says which of three causes applies. Seam's integration user may not have sufficient permissions on the provider's system, or may have been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. The provider account or site may not have a valid subscription with the provider: set up or renew that subscription with the provider. Or the provider may have rejected the credential Seam uses to operate the device's hub: contact Seam support to re-activate it.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { deprecated: true, description: 'Indicates that the device is offline.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_offline'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-deprecated': 'Use `device_disconnected` instead.', 'x-resource-type': 'device', }, { description: 'Indicates that the device has been removed.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_removed'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the hub is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['hub_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the device is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['empty_backup_access_code_pool'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the user is not authorized to use the August lock.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['august_lock_not_authorized'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['low_battery'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: 'Indicates that device credentials are missing.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['missing_device_credentials'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the auxiliary heat is running.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['auxiliary_heat_running'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that a subscription is required to connect.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['subscription_required'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, is_managed: { description: 'Indicates that Seam does not manage the access code.', enum: [false], type: 'boolean', }, name: { description: "Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`. To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints. To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", nullable: true, type: 'string', }, starts_at: { description: 'Date and time at which the time-bound access code becomes active.', format: 'date-time', nullable: true, type: 'string', }, status: { deprecated: true, description: 'Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.', enum: ['set', 'unset'], type: 'string', 'x-deprecated': "Use `display_status` to show a person the code's state.", }, type: { description: 'Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.', enum: ['time_bound', 'ongoing'], type: 'string', }, warnings: { description: 'Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', items: { description: 'Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['code_rotates_periodically'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: "The device's time zone is unknown and this code's time frame crosses a daylight-saving transition in at least one plausible time zone. A 1-hour safety buffer has been applied to the side of the time frame affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's time zone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact handling.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_frame_adjusted_for_unknown_time_zone'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.', properties: { change_type: { description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.", enum: ['modified', 'removed'], type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, modified_fields: { description: 'List of fields that were changed externally, with their previous and new values.', items: { properties: { field: { description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).', type: 'string', }, from: { description: 'The previous value of the field.', nullable: true, type: 'string', }, to: { description: 'The new value of the field.', nullable: true, type: 'string', }, }, required: ['field', 'from', 'to'], type: 'object', }, type: 'array', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['external_modification_in_effect'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Delay in setting code on device.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_setting_on_device'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { deprecated: true, description: 'Delay in removing code from device.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_removing_from_device'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', 'x-deprecated': 'Seam no longer sets this warning. Use the `failed_to_remove_from_device` error instead.', }, { description: 'Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_issuing'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', 'x-undocumented': 'Unreleased.', }, { description: 'Third-party integration detected that may cause access codes to fail.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['third_party_integration_detected'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Algopins must be used within 24 hours.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['igloo_algopin_must_be_used_within_24_hours'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Management was transferred to another workspace.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['management_transferred'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'A backup access code has been pulled and is being used in place of this access code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['using_backup_access_code'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: 'Access code is being deleted, because it was deleted or passed its `ends_at`. It can no longer be updated.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, { description: "Seam had been unable to reach the device for an extended period when this access code was created, so the code is unlikely to be set until the device reconnects. Check the device's connection. This warning clears automatically when the device comes back online or the code is set on the device.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_unreachable_since: { description: 'Date and time since which Seam has been unable to reach the device.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_unreachable_for_extended_period'], type: 'string', }, }, required: [ 'message', 'warning_code', 'device_unreachable_since', ], type: 'object', }, { description: 'An unknown issue occurred with the access code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_access_code'], type: 'string', }, }, required: ['message', 'warning_code'], type: 'object', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, workspace_id: { description: 'Unique identifier for the Seam workspace associated with the access code.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'type', 'access_code_id', 'device_id', 'name', 'code', 'created_at', 'errors', 'warnings', 'is_managed', 'status', 'display_status', ], type: 'object', 'x-route-path': '/access_codes/unmanaged', }, unmanaged_access_grant: { description: 'Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys.', properties: { access_grant_id: { description: 'ID of the Access Grant.', format: 'uuid', type: 'string', }, access_method_ids: { description: 'IDs of the access methods created for the Access Grant.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the Access Grant was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name of the Access Grant.', type: 'string', }, ends_at: { description: 'Date and time at which the Access Grant ends.', format: 'date-time', nullable: true, type: 'string', }, errors: { description: 'Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that Seam could not create one or more of the requested access methods for the access grant.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['cannot_create_requested_access_methods'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, missing_device_ids: { description: 'IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_grant', }, { description: 'Indicates that the access system rejected the access that Seam tried to set up for this access grant, so its credentials cannot open the affected entrances. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_not_provisioned'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_grant', }, ], }, type: 'array', }, location_ids: { deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `space_ids`.', 'x-end-of-life': '2026-11-09', }, name: { description: 'Name of the Access Grant. If not provided, the display name will be computed.', nullable: true, type: 'string', }, pending_mutations: { description: 'List of pending mutations for the access grant. This shows updates that are in progress.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of updating the devices/spaces associated with this access grant.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous location configuration.', properties: { device_ids: { description: 'Previous device IDs where access codes existed.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant.', enum: ['updating_spaces'], type: 'string', }, to: { description: 'New location configuration.', properties: { common_code_key: { description: 'Common code key to ensure PIN code reuse across devices.', nullable: true, type: 'string', }, device_ids: { description: 'New device IDs where access codes should be created.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of updating the access times for this access grant.', properties: { access_method_ids: { description: 'IDs of the access methods being updated.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous access time configuration.', properties: { ends_at: { description: 'Previous end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access grant.', enum: ['updating_access_times'], type: 'string', }, to: { description: 'New access time configuration.', properties: { ends_at: { description: 'New end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'access_method_ids', 'from', 'to', ], type: 'object', }, ], }, type: 'array', }, requested_access_methods: { description: 'Access methods that the user requested for the Access Grant.', items: { properties: { code: { description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.", maxLength: 9, minLength: 4, pattern: '^\\d+$', type: 'string', }, created_access_method_ids: { description: 'IDs of the access methods created for the requested access method.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the requested access method was added to the Access Grant.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name of the access method.', type: 'string', }, instant_key_max_use_count: { description: "Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.", minimum: 1, type: 'integer', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, }, required: [ 'display_name', 'mode', 'created_at', 'created_access_method_ids', ], type: 'object', }, type: 'array', }, reservation_key: { description: 'Reservation key for the access grant.', type: 'string', }, space_ids: { description: 'IDs of the spaces to which the Access Grant gives access.', items: { format: 'uuid', type: 'string' }, type: 'array', }, starts_at: { description: 'Date and time at which the Access Grant starts.', format: 'date-time', type: 'string', }, user_identity_id: { description: 'ID of user identity to which the Access Grant gives access.', format: 'uuid', type: 'string', }, warnings: { description: 'Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', items: { description: 'Warning associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access grant](https://www.seam.co/docs/use-cases/granting-access) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['underprovisioned_access'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, failed_devices: { description: 'Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).', items: { properties: { device_id: { description: 'Device whose access code could not be revoked.', format: 'uuid', type: 'string', }, error_code: { description: 'Reason the access code could not be revoked.', enum: ['offline_access_code_not_revocable'], type: 'string', }, message: { description: 'Human-readable description of why revocation failed.', type: 'string', }, }, required: ['device_id', 'error_code', 'message'], type: 'object', }, type: 'array', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['overprovisioned_access'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access times for this [access grant](https://www.seam.co/docs/use-cases/granting-access) are being updated.', properties: { access_method_ids: { description: 'IDs of the access methods being updated.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['updating_access_times'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'access_method_ids', ], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.', properties: { access_method_id: { description: 'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The new PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that was unavailable.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that a device in the access grant does not support access codes and was excluded from code materialization.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device that does not support access codes.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_does_not_support_access_codes'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'device_id', ], type: 'object', }, { description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, device_id: { description: 'ID of the device whose time constraints the access grant violates.', format: 'uuid', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, reason: { description: "Specific reason why the grant's times are not programmable on the device.", enum: [ 'duration_exceeds_max', 'times_do_not_match_slots', 'ongoing_not_supported', ], type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_time_constraints_violated'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'device_id', 'reason', ], type: 'object', }, { description: "Indicates that one of this access grant's access methods no longer grants access because of a change outside Seam, for example its card was encoded again for another credential. Seam does not replace the access method; issue a new one if the user still needs it.", properties: { access_method_id: { description: 'ID of the access method whose access was revoked.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['access_revoked'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'access_method_id', ], type: 'object', }, { description: "Indicates that Seam did not issue the mobile key requested for this access grant, because the user's email address or phone number belongs to other user identities and Seam cannot tell which person's app should receive it. The other requested access methods were issued.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['mobile_key_withheld'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the Seam workspace associated with the Access Grant.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'access_grant_id', 'location_ids', 'space_ids', 'requested_access_methods', 'access_method_ids', 'name', 'display_name', 'created_at', 'starts_at', 'ends_at', 'warnings', 'errors', 'pending_mutations', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/access_grants/unmanaged', }, unmanaged_access_method: { description: 'Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys.', properties: { access_method_id: { description: 'ID of the access method.', format: 'uuid', type: 'string', }, code: { description: 'The actual PIN code for code access methods.', nullable: true, type: 'string', }, created_at: { description: 'Date and time at which the access method was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name of the access method.', type: 'string', }, display_status: { description: 'Human-readable sentence describing where the access method sits in its relationship with the device or access system, for example `Awaiting encoding`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `is_issued`, `errors`, and `pending_mutations`.', type: 'string', }, errors: { description: 'Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Error associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that Seam was unable to issue this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) before its access grant started, so the recipient may be unable to access the space. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and this error clears automatically if the access method is eventually issued.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_issue'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, { description: 'Indicates that the access system rejected the access that Seam tried to set up for this access method, so its credential cannot open the affected entrances, even after it is issued. For example, a hotel room may already be reserved or checked in for another guest. The message contains the reason that the access system gave. Seam keeps retrying, and this error clears automatically once the access system accepts the access.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['access_not_provisioned'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'access_method', }, ], }, type: 'array', }, is_assignment_required: { description: 'Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.', type: 'boolean', }, is_encoding_required: { description: 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.', type: 'boolean', }, is_issued: { description: 'Indicates whether the access method has been issued.', type: 'boolean', }, is_ready_for_assignment: { description: 'Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.', type: 'boolean', }, is_ready_for_encoding: { description: 'Indicates whether the access method is ready to be encoded. This is true when the card has not yet been issued and the access system has received all the access the card needs. While it is false, `pending_mutations` contains `waiting_for_access_on_acs_system`.', type: 'boolean', }, issued_at: { description: 'Date and time at which the access method was issued.', format: 'date-time', nullable: true, type: 'string', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, pending_mutations: { description: 'Pending mutations for the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of provisioning access for this access method on new devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access was provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.', enum: ['provisioning_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access is being provisioned.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of revoking access for this access method from devices.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous device configuration.', properties: { device_ids: { description: 'Previous device IDs where access existed.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.', enum: ['revoking_access'], type: 'string', }, to: { description: 'New device configuration.', properties: { device_ids: { description: 'New device IDs where access should remain.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['device_ids'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of updating the access times for this access method.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous access time configuration.', properties: { ends_at: { description: 'Previous end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Previous start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access method.', enum: ['updating_access_times'], type: 'string', }, to: { description: 'New access time configuration.', properties: { ends_at: { description: 'New end time for access.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'New start time for access.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'The access system has not yet received all the access this card needs. A card encoded now would carry only the access the system already has, so wait until this clears before encoding.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that the access system has not yet received all the access this card needs, so the card is not ready to be encoded.', enum: ['waiting_for_access_on_acs_system'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, ], }, type: 'array', }, warnings: { description: 'Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', items: { description: 'Warning associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access times for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) are being updated.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['updating_access_times'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that all attempts to create an access code on this device before the start time failed and a backup access code was used to ensure access was provided in time.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, original_access_method_id: { description: 'ID of the original access method from which this backup access method was split, if applicable.', format: 'uuid', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['pulled_backup_access_code'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that Seam has not yet issued this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['delay_in_issuing'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_email_address'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['user_identity_missing_phone_number'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the Seam workspace associated with the access method.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'access_method_id', 'display_name', 'mode', 'created_at', 'issued_at', 'is_issued', 'display_status', 'warnings', 'errors', 'pending_mutations', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/access_methods/unmanaged', }, unmanaged_acs_access_group: { properties: { access_group_type: { deprecated: true, enum: [ 'pti_unit', 'pti_access_level', 'salto_ks_access_group', 'brivo_group', 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', 'avigilon_alta_group', 'kisi_access_group', 'akiles_member_group', ], type: 'string', 'x-deprecated': 'Use `external_type`.', 'x-end-of-life': '2026-11-09', }, access_group_type_display_name: { deprecated: true, type: 'string', 'x-deprecated': 'Use `external_type_display_name`.', 'x-end-of-life': '2026-11-09', }, access_schedule: { description: "`starts_at` and `ends_at` timestamps for the access group's access.", properties: { ends_at: { description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, acs_access_group_id: { description: 'ID of the access group.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the access control system that contains the access group.', format: 'uuid', type: 'string', }, connected_account_id: { description: 'ID of the connected account that contains the access group.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the access group was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the access group.', type: 'string', }, errors: { description: 'Errors associated with the `acs_access_group`.', items: { description: 'Error associated with the `acs_access_group`.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups) was not created on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['failed_to_create_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_access_group', }, ], }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the access group type.', enum: [ 'pti_unit', 'pti_access_level', 'salto_ks_access_group', 'brivo_group', 'salto_space_group', 'dormakaba_community_access_group', 'dormakaba_ambiance_access_group', 'avigilon_alta_group', 'kisi_access_group', 'akiles_member_group', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the access group type.', type: 'string', }, is_managed: { enum: [false], type: 'boolean' }, name: { description: 'Name of the access group.', type: 'string' }, pending_mutations: { description: 'Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of pushing an access group creation to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system.', enum: ['creating'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing an access group deletion to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system.', enum: ['deleting'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'This access group is scheduled for automatic deletion when its access window expires.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.', enum: ['deferring_deletion'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing an access group information update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access group information.', properties: { name: { description: 'Name of the access group.', nullable: true, type: 'string', }, }, type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system.', enum: ['updating_group_information'], type: 'string', }, to: { description: 'New access group information.', properties: { name: { description: 'Name of the access group.', nullable: true, type: 'string', }, }, type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access schedule update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access schedule information.', properties: { ends_at: { description: 'Ending time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.', enum: ['updating_access_schedule'], type: 'string', }, to: { description: 'New access schedule information.', properties: { ends_at: { description: 'Ending time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing a user membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old user membership.', properties: { acs_user_id: { description: 'Old user ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_user_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system.', enum: ['updating_user_membership'], type: 'string', }, to: { description: 'New user membership.', properties: { acs_user_id: { description: 'New user ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_user_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an entrance membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old entrance membership.', properties: { acs_entrance_id: { description: 'Old entrance ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_entrance_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system.', enum: ['updating_entrance_membership'], type: 'string', }, to: { description: 'New entrance membership.', properties: { acs_entrance_id: { description: 'New entrance ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_entrance_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'A scheduled user membership change is pending for this access group.', properties: { acs_user_id: { description: 'ID of the user involved in the scheduled change.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that a scheduled user membership change is pending for this access group.', enum: ['deferring_user_membership_update'], type: 'string', }, variant: { description: 'Whether the user is scheduled to be added to or removed from this access group.', enum: ['adding', 'removing'], type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'acs_user_id', 'variant', ], type: 'object', }, ], }, type: 'array', }, warnings: { description: 'Warnings associated with the `acs_access_group`.', items: { description: 'Warning associated with the `acs_access_group`.', oneOf: [ { description: 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_access_group'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the access group.', format: 'uuid', type: 'string', }, }, required: [ 'acs_access_group_id', 'acs_system_id', 'workspace_id', 'connected_account_id', 'name', 'access_group_type', 'access_group_type_display_name', 'display_name', 'external_type', 'external_type_display_name', 'created_at', 'errors', 'warnings', 'pending_mutations', 'is_managed', ], type: 'object', 'x-route-path': '/acs/access_groups/unmanaged', 'x-undocumented': 'Unreleased.', }, unmanaged_acs_credential: { description: 'Means by which an [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) gains access at an [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). The `unmanaged_acs_credential` object, which is not managed by Seam, represents a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://www.seam.co/docs/low-level-apis/access-systems). For each `acs_credential` object, you define the access method. You can also specify additional properties, such as a PIN code.', properties: { access_method: { description: 'Access method for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_credential_id: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_credential_pool_id: { description: 'ID of the credential pool to which the credential belongs.', format: 'uuid', type: 'string', }, acs_system_id: { description: 'ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, akiles_metadata: { description: 'Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { member_pin_id: { description: 'ID of the Akiles member PIN.', type: 'string', }, }, type: 'object', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, door_names: { description: 'Names of the doors to which to grant access in the Vostio access system.', items: { type: 'string' }, type: 'array', }, endpoint_id: { description: 'Endpoint ID in the Vostio access system.', type: 'string', }, key_id: { description: 'Key ID in the Vostio access system.', type: 'string', }, key_issuing_request_id: { description: 'Key issuing request ID in the Vostio access system.', type: 'string', }, override_guest_acs_entrance_ids: { description: 'IDs of the guest entrances to override in the Vostio access system.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, card_number: { description: 'Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, code: { description: 'Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', nullable: true, type: 'string', }, connected_account_id: { description: 'ID of the [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, errors: { description: 'Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message', 'created_at'], type: 'object', }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.', enum: [ 'pti_card', 'brivo_credential', 'hid_credential', 'visionline_card', 'salto_ks_credential', 'assa_abloy_vostio_key', 'salto_space_key', 'latch_access', 'dormakaba_ambiance_credential', 'hotek_card', 'salto_ks_tag', 'avigilon_alta_credential', 'kisi_credential', 'akiles_credential', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type.', type: 'string', }, is_issued: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.', type: 'boolean', }, is_latest_desired_state_synced_with_provider: { description: 'Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.', nullable: true, type: 'boolean', }, is_managed: { enum: [false], type: 'boolean' }, is_multi_phone_sync_credential: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.', type: 'boolean', }, issued_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card.', format: 'date-time', nullable: true, type: 'string', }, latest_desired_state_synced_with_provider_at: { description: 'Date and time at which the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.', format: 'date-time', nullable: true, type: 'string', }, parent_acs_credential_id: { description: 'ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, starts_at: { description: 'Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/api/user_identities/object) to whom the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) belongs.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', properties: { auto_join: { description: 'Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.', type: 'boolean', }, card_function_type: { description: 'Card function type in the Visionline access system.', enum: ['guest', 'staff'], type: 'string', }, card_id: { description: 'ID of the card in the Visionline access system.', type: 'string', }, common_acs_entrance_ids: { description: 'Common entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, credential_id: { description: 'ID of the credential in the Visionline access system.', type: 'string', }, guest_acs_entrance_ids: { description: 'Guest entrance IDs in the Visionline access system.', items: { format: 'uuid', type: 'string' }, type: 'array', }, is_valid: { description: 'Indicates whether the credential is valid.', type: 'boolean', }, joiner_acs_credential_ids: { description: 'IDs of the credentials to which you want to join.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, warnings: { description: 'Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', items: { description: 'Warning associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is waiting to be issued.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['waiting_to_be_issued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the schedule of one of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials)'s children was modified externally.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_externally_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the schedule of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_modified'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_acs_credential'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Access permissions for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['needs_to_be_reissued'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, new_code: { description: 'The PIN code that was assigned instead.', type: 'string', }, original_code: { description: 'The originally requested PIN code that could not be used.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['requested_code_unavailable'], type: 'string', }, }, required: [ 'created_at', 'message', 'warning_code', 'original_code', 'new_code', ], type: 'object', }, { description: 'Indicates that the access system can only end card access on fixed time marks, so access was extended past `ends_at` to the next mark. The message states when access actually ends.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['schedule_rounded_up'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', format: 'uuid', type: 'string', }, }, required: [ 'acs_credential_id', 'connected_account_id', 'acs_system_id', 'display_name', 'access_method', 'created_at', 'workspace_id', 'errors', 'warnings', 'is_managed', ], type: 'object', 'x-route-path': '/acs/credentials/unmanaged', 'x-undocumented': 'Unreleased.', }, unmanaged_acs_user: { description: 'Represents an unmanaged [user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in an [access system](https://www.seam.co/docs/low-level-apis/access-systems).', properties: { access_schedule: { description: "`starts_at` and `ends_at` timestamps for the [access system user's](https://www.seam.co/docs/low-level-apis/access-systems/user-management) access.", properties: { ends_at: { description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.", format: 'date-time', type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, acs_system_id: { description: 'ID of the [access system](https://www.seam.co/docs/low-level-apis/access-systems) that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, connected_account_id: { description: '\n The ID of the connected account that is associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).\n ', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', type: 'string', }, email: { deprecated: true, format: 'email', type: 'string', 'x-deprecated': 'use email_address.', 'x-end-of-life': '2026-11-09', }, email_address: { description: 'Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'email', type: 'string', }, errors: { description: 'Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', items: { description: 'Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was deleted from the [access system](https://www.seam.co/docs/low-level-apis/access-systems) outside of Seam.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['deleted_externally'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not created on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_create_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not updated on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_update_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['failed_to_delete_on_acs_system'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { enum: ['latch_conflict_with_resident_user'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'acs_user', }, ], }, type: 'array', }, external_type: { description: 'Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type.', enum: [ 'pti_user', 'brivo_user', 'hid_credential_manager_user', 'salto_site_user', 'latch_user', 'dormakaba_community_user', 'salto_space_user', 'avigilon_alta_user', 'kisi_user', ], type: 'string', }, external_type_display_name: { description: 'Display name that corresponds to the brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type.', type: 'string', }, full_name: { description: 'Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', minLength: 1, type: 'string', }, hid_acs_system_id: { description: 'ID of the HID access control system associated with the user.', format: 'uuid', type: 'string', }, is_managed: { enum: [false], type: 'boolean' }, is_suspended: { description: 'Indicates whether the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is currently [suspended](https://www.seam.co/docs/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).', type: 'boolean', }, last_successful_sync_at: { description: 'The last time an internal sync job completed for this access system user.', format: 'date-time', nullable: true, type: 'string', 'x-undocumented': 'Only used internally.', }, pending_mutations: { description: 'Pending mutations associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.', items: { discriminator: { propertyName: 'mutation_code' }, oneOf: [ { description: 'Seam is in the process of pushing a user creation to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.', enum: ['creating'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'Seam is in the process of pushing a user deletion to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.', enum: ['deleting'], type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { description: 'User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.', enum: ['deferring_creation'], type: 'string', }, scheduled_at: { description: 'Optional: When the user creation is scheduled to occur.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['created_at', 'message', 'mutation_code'], type: 'object', }, { properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access system user information.', properties: { email_address: { description: 'Email address of the access system user.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the access system user.', nullable: true, type: 'string', }, phone_number: { description: 'Phone number of the access system user.', nullable: true, type: 'string', }, }, type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.', enum: ['updating_user_information'], type: 'string', }, to: { description: 'New access system user information.', properties: { email_address: { description: 'Email address of the access system user.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the access system user.', nullable: true, type: 'string', }, phone_number: { description: 'Phone number of the access system user.', nullable: true, type: 'string', }, }, type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access schedule update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access schedule information.', properties: { ends_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.', enum: ['updating_access_schedule'], type: 'string', }, to: { description: 'New access schedule information.', properties: { ends_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: 'Starting time for the access schedule.', format: 'date-time', nullable: true, type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing a suspension state update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old user suspension state information.', properties: { is_suspended: { type: 'boolean' } }, required: ['is_suspended'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.', enum: ['updating_suspension_state'], type: 'string', }, to: { description: 'New user suspension state information.', properties: { is_suspended: { type: 'boolean' } }, required: ['is_suspended'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'Seam is in the process of pushing an access group membership update to the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Old access group membership.', properties: { acs_access_group_id: { description: 'Old access group ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_access_group_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.', enum: ['updating_group_membership'], type: 'string', }, to: { description: 'New access group membership.', properties: { acs_access_group_id: { description: 'New access group ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_access_group_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, { description: 'A scheduled access group membership change is pending for this user.', properties: { acs_access_group_id: { description: 'ID of the access group involved in the scheduled change.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that a scheduled access group membership change is pending for this user.', enum: ['deferring_group_membership_update'], type: 'string', }, variant: { description: 'Whether the user is scheduled to be added to or removed from the access group.', enum: ['adding', 'removing'], type: 'string', }, }, required: [ 'created_at', 'message', 'mutation_code', 'acs_access_group_id', 'variant', ], type: 'object', }, { description: 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', properties: { created_at: { description: 'Date and time at which the mutation was created.', format: 'date-time', type: 'string', }, from: { description: 'Previous credential assignment.', properties: { acs_credential_id: { description: 'Previous credential ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, message: { description: 'Detailed description of the mutation.', type: 'string', }, mutation_code: { description: 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.', enum: ['updating_credential_assignment'], type: 'string', }, to: { description: 'New credential assignment.', properties: { acs_credential_id: { description: 'New credential ID.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, }, required: [ 'created_at', 'message', 'mutation_code', 'from', 'to', ], type: 'object', }, ], }, type: 'array', }, phone_number: { description: 'Phone number of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', type: 'string', }, salto_ks_metadata: { description: 'Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', properties: { is_subscribed: { description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.", type: 'boolean', }, }, type: 'object', }, salto_space_metadata: { description: 'Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', properties: { audit_openings: { description: 'Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.', type: 'boolean', }, user_id: { description: 'User ID in the Salto Space access system.', type: 'string', }, }, type: 'object', }, user_identity_email_address: { description: 'Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', nullable: true, type: 'string', }, user_identity_full_name: { description: 'Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', type: 'string', }, user_identity_phone_number: { description: 'Phone number of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', nullable: true, type: 'string', }, warnings: { description: 'Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', items: { description: 'Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is being deleted from the [access system](https://www.seam.co/docs/low-level-apis/access-systems). This is a temporary state, and the access system user will be deleted shortly.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['being_deleted'], type: 'string' }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['salto_ks_user_not_subscribed'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) exists but is not currently able to gain access—for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['acs_user_inactive'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'An unknown issue occurred while syncing the state of this [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['unknown_issue_with_acs_user'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: 'Indicates that the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { enum: ['latch_resident_user'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'uuid', type: 'string', }, }, required: [ 'acs_user_id', 'acs_system_id', 'workspace_id', 'created_at', 'display_name', 'warnings', 'errors', 'last_successful_sync_at', 'connected_account_id', 'is_managed', ], type: 'object', 'x-route-path': '/acs/users/unmanaged', 'x-undocumented': 'Unreleased.', }, unmanaged_device: { description: 'Represents an [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).', properties: { can_activate_weekly_program: { description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.', type: 'boolean', }, can_configure_auto_lock: { description: 'Indicates whether the lock supports configuring automatic locking.', type: 'boolean', }, can_control_temperature: { description: 'Indicates whether the device supports controlling its primary target temperature.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_hvac_cool: { description: 'Indicates whether the thermostat supports cooling.', type: 'boolean', }, can_hvac_heat: { description: 'Indicates whether the thermostat supports heating.', type: 'boolean', }, can_hvac_heat_cool: { description: 'Indicates whether the thermostat supports simultaneous heating and cooling.', type: 'boolean', }, can_mute_speaker: { description: 'Indicates whether the speaker supports muting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_pause_speaker_playback: { description: 'Indicates whether the speaker supports pausing playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_audio_clip: { description: 'Indicates whether the speaker supports playing an audio clip from a URL.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_chime: { description: 'Indicates whether the speaker supports playing a chime.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_play_speaker_favorite: { description: "Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations.", type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_program_offline_access_codes: { description: 'Indicates whether the device supports programming offline access codes.', type: 'boolean', }, can_program_online_access_codes: { description: 'Indicates whether the device supports programming online access codes.', type: 'boolean', }, can_program_thermostat_programs_as_different_each_day: { description: 'Indicates whether the thermostat supports different climate programs for each day of the week.', type: 'boolean', }, can_program_thermostat_programs_as_same_each_day: { description: 'Indicates whether the thermostat supports a single climate program applied to every day.', type: 'boolean', }, can_program_thermostat_programs_as_weekday_weekend: { description: 'Indicates whether the thermostat supports weekday/weekend climate programs.', type: 'boolean', }, can_remotely_lock: { description: 'Indicates whether the device supports remote locking.', type: 'boolean', }, can_remotely_unlock: { description: 'Indicates whether the device supports remote unlocking.', type: 'boolean', }, can_resume_speaker_playback: { description: 'Indicates whether the speaker supports resuming playback.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_run_thermostat_programs: { description: 'Indicates whether the thermostat supports running climate programs.', type: 'boolean', }, can_set_speaker_volume: { description: 'Indicates whether the speaker supports setting its volume.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, can_simulate_connection: { description: 'Indicates whether the device supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_disconnection: { description: 'Indicates whether the device supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_hub_connection: { description: 'Indicates whether the hub supports simulating connection in a sandbox.', type: 'boolean', }, can_simulate_hub_disconnection: { description: 'Indicates whether the hub supports simulating disconnection in a sandbox.', type: 'boolean', }, can_simulate_paid_subscription: { description: 'Indicates whether the device supports simulating a paid subscription in a sandbox.', type: 'boolean', }, can_simulate_removal: { description: 'Indicates whether the device supports simulating removal in a sandbox.', type: 'boolean', }, can_stream_live_video: { description: 'Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline.', type: 'boolean', }, can_turn_off_hvac: { description: 'Indicates whether the thermostat can be turned off.', type: 'boolean', }, can_unlock_with_code: { description: 'Indicates whether the lock supports unlocking with an access code.', type: 'boolean', }, can_unmute_speaker: { description: 'Indicates whether the speaker supports unmuting.', type: 'boolean', 'x-undocumented': 'Unreleased.', }, capabilities_supported: { description: '\n Collection of capabilities that the device supports when connected to Seam. Values are `access_code`, which indicates that the device can manage and utilize digital PIN codes for secure access; `lock`, which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; `noise_detection`, which indicates that the device supports monitoring and responding to ambient noise levels; `thermostat`, which indicates that the device can regulate and adjust indoor temperatures; `battery`, which indicates that the device can manage battery life and health; and `phone`, which indicates that the device is a mobile device, such as a smartphone. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).\n ', items: { description: '\n Collection of capabilities that the device supports when connected to Seam. **Important:** Superseded by [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags).\n ', enum: [ 'access_code', 'lock', 'noise_detection', 'thermostat', 'battery', 'phone', 'pool', ], type: 'string', }, type: 'array', }, connected_account_id: { description: 'Unique identifier for the account associated with the device.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which the device object was created.', format: 'date-time', type: 'string', }, custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://www.seam.co/docs/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. Keys set to `null` or to an empty string are omitted.', type: 'object', }, device_id: { description: 'ID of the device.', format: 'uuid', type: 'string', }, device_type: { description: 'Type of the device. The `august_lock` and `yale_lock` values are deprecated. Use `yale_access_lock` in place of `august_lock`, and `yale_access_lock` or `yale_home_lock` in place of `yale_lock`.', oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, display_name: { description: 'Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.', type: 'string', }, errors: { description: 'Array of errors associated with the device. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that the account is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['account_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that the Salto site user limit has been reached.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_exceeded'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { description: "Indicates that the provider's system to which this device belongs is not letting Seam act on it, so Seam cannot manage access codes or unlock the device. The error message says which of three causes applies. Seam's integration user may not have sufficient permissions on the provider's system, or may have been suspended there: grant the integration user the required permissions in the provider's system, or reauthorize the connected account in Seam. The provider account or site may not have a valid subscription with the provider: set up or renew that subscription with the provider. Or the provider may have rejected the credential Seam uses to operate the device's hub: contact Seam support to re-activate it.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['insufficient_permissions'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', }, { description: 'Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['dormakaba_sites_disconnected'], type: 'string', }, is_connected_account_error: { description: 'Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error.', enum: [true], type: 'boolean', }, is_device_error: { description: 'Indicates that the error is not a device error.', enum: [false], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', 'is_connected_account_error', ], type: 'object', 'x-resource-type': 'connected_account', 'x-variant-group-key': 'locks', }, { deprecated: true, description: 'Indicates that the device is offline.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_offline'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-deprecated': 'Use `device_disconnected` instead.', 'x-resource-type': 'device', }, { description: 'Indicates that the device has been removed.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_removed'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the hub is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['hub_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the device is disconnected.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['device_disconnected'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['empty_backup_access_code_pool'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the user is not authorized to use the August lock.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['august_lock_not_authorized'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about one week, two days, or a critically low amount of battery life remaining. Replace the lock's batteries promptly to avoid losing access.", properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['low_battery'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'locks', }, { description: 'Indicates that device credentials are missing.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['missing_device_credentials'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the auxiliary heat is running.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['auxiliary_heat_running'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that a subscription is required to connect.', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['subscription_required'], type: 'string', }, is_device_error: { description: 'Indicates that the error is a device error.', enum: [true], type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'message', 'is_device_error', 'created_at', 'error_code', ], type: 'object', 'x-resource-type': 'device', }, { description: 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://www.seam.co/docs/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).', properties: { created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['bridge_disconnected'], type: 'string', }, is_bridge_error: { description: 'Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', type: 'boolean', }, is_connected_account_error: { description: 'Indicates whether the error is related specifically to the connected account.', type: 'boolean', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: ['created_at', 'message', 'error_code'], type: 'object', 'x-resource-type': 'connected_account', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, is_managed: { description: 'Indicates that Seam does not manage the device.', enum: [false], type: 'boolean', }, is_online: { description: 'Indicates whether the device is online.', type: 'boolean', 'x-property-group-key': 'hardware', }, location: { description: 'Location information for the device.', properties: { location_name: { description: 'Name of the device location.\n ', type: 'string', }, room_name: { description: 'Name of the room within the device location, when the provider reports one.\n ', type: 'string', }, time_zone: { description: 'Time zone of the device location.\n ', type: 'string', }, timezone: { deprecated: true, description: 'Time zone of the device location.', type: 'string', 'x-deprecated': 'Use `time_zone` instead.', 'x-end-of-life': '2026-11-09', }, }, type: 'object', 'x-property-group-key': 'hardware', }, properties: { description: 'properties of the device.', properties: { accessory_keypad: { description: 'Accessory keypad properties and state.', properties: { battery: { description: 'Keypad battery properties.\n ', properties: { level: { format: 'float', maximum: 1, minimum: 0, type: 'number', }, }, required: ['level'], type: 'object', }, is_connected: { description: 'Indicates if an accessory keypad is connected to the device.\n ', type: 'boolean', }, }, required: ['is_connected'], type: 'object', 'x-property-group-key': 'hardware', }, battery: { description: 'Represents the current status of the battery charge level.', properties: { level: { description: 'Battery charge level as a value between 0 and 1, inclusive.\n ', format: 'float', maximum: 1, minimum: 0, type: 'number', }, status: { description: 'Represents the current status of the battery charge level. Values are `critical`, which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; `low`, which signifies that the battery is under the preferred threshold and should be charged soon; `good`, which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and `full`, which represents a battery that is fully charged, providing the maximum duration of usage.\n ', enum: ['critical', 'low', 'good', 'full'], type: 'string', }, }, required: ['level', 'status'], type: 'object', 'x-property-group-key': 'hardware', }, battery_level: { description: 'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.', format: 'float', maximum: 1, minimum: 0, type: 'number', 'x-property-group-key': 'hardware', }, image_alt_text: { description: 'Alt text for the device image.', type: 'string', 'x-property-group-key': 'hardware', }, image_url: { description: 'Image URL for the device.', format: 'uri', type: 'string', 'x-property-group-key': 'hardware', }, manufacturer: { description: 'Manufacturer of the device. When a device, such as a smart lock, is connected through a smart hub, the manufacturer of the device might be different from that of the smart hub.', type: 'string', 'x-property-group-key': 'hardware', }, model: { description: 'Device model-related properties.', properties: { accessory_keypad_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.properties.model.can_connect_accessory_keypad', 'x-end-of-life': '2026-11-09', }, can_connect_accessory_keypad: { description: '\n Indicates whether the device can connect a accessory keypad.\n ', type: 'boolean', }, display_name: { description: '\n Display name of the device model.\n ', type: 'string', }, has_built_in_keypad: { description: '\n Indicates whether the device has a built in accessory keypad.\n ', type: 'boolean', }, manufacturer_display_name: { description: '\n Display name that corresponds to the manufacturer-specific terminology for the device.\n ', type: 'string', }, offline_access_codes_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.can_program_offline_access_codes.', 'x-end-of-life': '2026-11-09', }, online_access_codes_supported: { deprecated: true, type: 'boolean', 'x-deprecated': 'use device.can_program_online_access_codes.', 'x-end-of-life': '2026-11-09', }, }, required: ['display_name', 'manufacturer_display_name'], type: 'object', }, name: { deprecated: true, description: 'Name of the device.', type: 'string', 'x-deprecated': 'use device.display_name instead', }, offline_access_codes_enabled: { deprecated: true, description: 'Indicates whether it is currently possible to use offline access codes for the device.', type: 'boolean', 'x-deprecated': 'use device.can_program_offline_access_codes', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, online: { description: 'Indicates whether the device is online.', type: 'boolean', }, online_access_codes_enabled: { deprecated: true, description: 'Indicates whether it is currently possible to use online access codes for the device.', type: 'boolean', 'x-deprecated': 'use device.can_program_online_access_codes', 'x-end-of-life': '2026-11-09', 'x-property-group-key': 'access_codes', }, }, required: ['name', 'online', 'model'], type: 'object', 'x-property-groups': { access_codes: { name: 'access codes' }, hardware: { name: 'hardware' }, locks: { name: 'locks' }, noise_sensors: { name: 'noise sensors' }, phones: { name: 'phones' }, provider_metadata: { name: 'provider metadata' }, thermostats: { name: 'thermostats' }, }, }, warnings: { description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: `warning_code` and `message`. `warning_code` is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the backup access code is unhealthy.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['partial_backup_access_code_pool'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that there are too many backup codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['many_active_backup_codes'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party integration has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['third_party_integration_detected'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Remote Unlock feature is not enabled in the settings."', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_lock_gateway_unlocking_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the gateway signal is weak.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ttlock_weak_gateway_signal'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device is in power saving mode and may have limited functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['power_saving_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the temperature threshold has been exceeded.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['temperature_threshold_exceeded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'thermostats', }, { description: 'Indicates that the device appears to be unresponsive.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_communication_degraded'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that a scheduled maintenance window has been detected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['scheduled_maintenance_window'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the device has a flaky connection.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['device_has_flaky_connection'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { description: 'Indicates that the Salto KS lock is in Office Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_office_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { deprecated: true, description: 'Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `privacy_mode` instead.', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['privacy_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_subscription_limit_almost_reached'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://www.seam.co/help/salto-ks-lock-loses-access-code-support for troubleshooting steps.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['salto_ks_lock_access_code_support_removed'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that an unknown issue occurred while syncing the state of the phone with the provider. This issue may affect the proper functioning of the phone.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unknown_issue_with_phone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'phones', }, { description: 'Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['lockly_time_zone_not_configured'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['ultraloq_time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_unknown'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['time_zone_mismatch'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['two_n_device_missing_timezone'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['hub_required_for_additional_capabilities'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['service_mode'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-undocumented': 'Unreleased.', 'x-variant-group-key': 'pools', }, { description: 'Indicates a provider-specific issue that may affect device functionality.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['provider_issue'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that the key is in a locker that does not support the access codes API.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['keynest_unsupported_locker'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad exists, but is not linked to the Igloohome Bridge. Online access code programming will fail until the keypad is linked to the Igloohome Bridge in the Igloohome app.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_setup_required'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['accessory_keypad_low_battery'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: "Indicates that the lock has about two weeks of battery life remaining or the provider otherwise recommends replacing the lock's batteries soon.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['battery_replacement_recommended'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['unreliable_online_status'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-variant-group-key': 'locks', }, { description: 'Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.', properties: { active_access_code_count: { description: 'Number of active access codes on the device when the warning was set.', type: 'integer', }, created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, max_active_access_code_count: { description: 'Maximum number of active access codes supported by the device.', type: 'integer', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['max_access_codes_reached'], type: 'string', }, }, required: [ 'message', 'created_at', 'warning_code', 'active_access_code_count', 'max_active_access_code_count', ], type: 'object', 'x-variant-group-key': 'access_codes', }, { description: 'Indicates that a third-party subscription is required to enable additional device capabilities.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: [ 'subscription_required_for_additional_capabilities', ], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', }, { deprecated: true, description: "Indicates that the camera's account plan does not include cloud recording, so event media such as motion clips is unavailable.", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['cloud_recording_not_enabled'], type: 'string', }, }, required: ['message', 'created_at', 'warning_code'], type: 'object', 'x-deprecated': 'Use `subscription_required_for_additional_capabilities`.', }, ], }, type: 'array', 'x-variant-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, pools: { name: 'Pools' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, }, workspace_id: { description: 'Unique identifier for the Seam workspace associated with the device.', format: 'uuid', type: 'string', }, }, required: [ 'device_id', 'device_type', 'connected_account_id', 'capabilities_supported', 'workspace_id', 'errors', 'warnings', 'created_at', 'custom_metadata', 'display_name', 'is_online', 'is_managed', ], type: 'object', 'x-property-groups': { access_codes: { name: 'Access Codes' }, hardware: { name: 'Hardware' }, locks: { name: 'Locks' }, noise_sensors: { name: 'Noise Sensors' }, phones: { name: 'Phones' }, provider_metadata: { name: 'Provider Metadata' }, thermostats: { name: 'Thermostats' }, }, 'x-route-path': '/devices/unmanaged', }, unmanaged_user_identity: { description: 'Represents an unmanaged user identity. Unmanaged user identities do not have keys.', properties: { acs_user_ids: { description: 'Array of access system user IDs associated with the user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the user identity was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the user identity.', minLength: 1, type: 'string', }, email_address: { description: 'Unique email address for the user identity.', format: 'email', nullable: true, type: 'string', }, errors: { description: 'Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { description: 'Errors associated with the user identity.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that there is an issue with an access system user associated with this user identity.', properties: { acs_system_id: { description: 'ID of the access system that the user identity is associated with.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that has an issue.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['issue_with_acs_user'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'created_at', 'message', 'error_code', 'acs_user_id', 'acs_system_id', ], type: 'object', 'x-resource-type': 'user_identity', }, ], }, type: 'array', }, full_name: { description: 'Full name of the user associated with the user identity.', minLength: 1, nullable: true, type: 'string', }, merged_user_identity_ids: { description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, merged_user_identity_keys: { description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { type: 'string' }, type: 'array', }, phone_number: { description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity.', format: 'uuid', type: 'string', }, warnings: { description: 'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { description: 'Warnings associated with the user identity.', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the user identity is currently being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the ACS user's profile does not match the user identity's profile", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['acs_user_profile_does_not_match_user_identity'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the user identity.', format: 'uuid', type: 'string', }, }, required: [ 'user_identity_id', 'email_address', 'phone_number', 'display_name', 'full_name', 'merged_user_identity_ids', 'merged_user_identity_keys', 'created_at', 'workspace_id', 'errors', 'warnings', 'acs_user_ids', ], type: 'object', 'x-draft': 'Early access.', 'x-route-path': '/user_identities/unmanaged', }, user_identity: { description: 'Represents a [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with an application user account.', properties: { acs_user_ids: { description: 'Array of access system user IDs associated with the user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, created_at: { description: 'Date and time at which the user identity was created.', format: 'date-time', type: 'string', }, display_name: { description: 'Display name for the user identity.', minLength: 1, type: 'string', }, email_address: { description: 'Unique email address for the user identity.', format: 'email', nullable: true, type: 'string', }, errors: { description: 'Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', items: { description: 'Errors associated with the user identity.', discriminator: { propertyName: 'error_code' }, oneOf: [ { description: 'Indicates that there is an issue with an access system user associated with this user identity.', properties: { acs_system_id: { description: 'ID of the access system that the user identity is associated with.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that has an issue.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam created the error.', format: 'date-time', type: 'string', }, error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', enum: ['issue_with_acs_user'], type: 'string', }, message: { description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, }, required: [ 'created_at', 'message', 'error_code', 'acs_user_id', 'acs_system_id', ], type: 'object', 'x-resource-type': 'user_identity', }, ], }, type: 'array', }, full_name: { description: 'Full name of the user associated with the user identity.', minLength: 1, nullable: true, type: 'string', }, merged_user_identity_ids: { description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { format: 'uuid', type: 'string' }, type: 'array', }, merged_user_identity_keys: { description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.', items: { type: 'string' }, type: 'array', }, phone_number: { description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity.', format: 'uuid', type: 'string', }, user_identity_key: { description: 'Unique key for the user identity.', minLength: 1, nullable: true, type: 'string', }, warnings: { description: 'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { description: 'Warnings associated with the user identity.', discriminator: { propertyName: 'warning_code' }, oneOf: [ { description: 'Indicates that the user identity is currently being deleted.', properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['being_deleted'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, { description: "Indicates that the ACS user's profile does not match the user identity's profile", properties: { created_at: { description: 'Date and time at which Seam created the warning.', format: 'date-time', type: 'string', }, message: { description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', type: 'string', }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', enum: ['acs_user_profile_does_not_match_user_identity'], type: 'string', }, }, required: ['created_at', 'message', 'warning_code'], type: 'object', }, ], }, type: 'array', }, workspace_id: { description: 'ID of the workspace that contains the user identity.', format: 'uuid', type: 'string', }, }, required: [ 'user_identity_id', 'user_identity_key', 'email_address', 'phone_number', 'display_name', 'full_name', 'merged_user_identity_ids', 'merged_user_identity_keys', 'created_at', 'workspace_id', 'errors', 'warnings', 'acs_user_ids', ], type: 'object', 'x-route-path': '/user_identities', }, webhook: { description: 'Represents a [webhook](https://www.seam.co/docs/developer-tools/webhooks) that enables you to receive notifications of events. When you create a webhook, specify the endpoint URL at which you want to receive events and the set of event types that you want to receive.', properties: { event_types: { description: 'Types of events that the [webhook](https://www.seam.co/docs/developer-tools/webhooks) should receive.', items: { type: 'string' }, type: 'array', }, secret: { description: 'Secret associated with the [webhook](https://www.seam.co/docs/developer-tools/webhooks).', type: 'string', }, url: { description: 'URL for the [webhook](https://www.seam.co/docs/developer-tools/webhooks).', type: 'string', }, webhook_id: { description: 'ID of the webhook.', type: 'string' }, }, required: ['webhook_id', 'url'], type: 'object', 'x-route-path': '/webhooks', }, workspace: { description: 'Represents a Seam [workspace](https://www.seam.co/docs/core-concepts/workspaces). A workspace is a top-level entity that encompasses all other resources below it, such as devices, connected accounts, and Connect Webviews. Seam provides two types of workspaces. A [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces) is a special type of workspace designed for testing code. Sandbox workspaces offer test device accounts and virtual devices that you can connect and control. This ability to work with virtual devices is quite handy because it removes the need to own physical devices from multiple brands. To connect real devices and systems to Seam, use a [production workspace](https://www.seam.co/docs/core-concepts/workspaces#production-workspaces).', properties: { company_name: { deprecated: true, description: 'Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces).', type: 'string', 'x-deprecated': 'Use `connect_partner_name` instead.', 'x-end-of-life': '2026-11-09', }, connect_partner_name: { description: 'Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces).', nullable: true, type: 'string', }, connect_webview_customization: { properties: { inviter_logo_url: { description: 'URL of the inviter logo for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', type: 'string', }, logo_shape: { description: 'Logo shape for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', enum: ['circle', 'square'], type: 'string', }, primary_button_color: { description: 'Primary button color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', type: 'string', }, primary_button_text_color: { description: 'Primary button text color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', type: 'string', }, success_message: { description: 'Success message for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', type: 'string', }, }, type: 'object', }, is_publishable_key_auth_enabled: { description: 'Indicates whether publishable key authentication is enabled for this workspace.', type: 'boolean', }, is_sandbox: { description: 'Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', type: 'boolean', }, is_suspended: { description: 'Indicates whether the [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces) is suspended. Seam suspends sandbox workspaces that have not been accessed in 14 days.', type: 'boolean', }, name: { description: 'Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces).', type: 'string', }, organization_id: { description: 'ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization.', format: 'uuid', nullable: true, type: 'string', }, publishable_key: { description: 'Publishable key for the [workspace](https://www.seam.co/docs/core-concepts/workspaces). This key is used to identify the workspace in client-side applications.', type: 'string', }, workspace_id: { description: 'ID of the workspace.', format: 'uuid', type: 'string', }, }, required: [ 'workspace_id', 'name', 'company_name', 'is_sandbox', 'connect_webview_customization', 'is_suspended', 'connect_partner_name', 'is_publishable_key_auth_enabled', 'organization_id', ], type: 'object', 'x-route-path': '/workspaces', }, }, securitySchemes: { api_key: { bearerFormat: 'API Key', scheme: 'bearer', type: 'http' }, bridge_client_session: { bearerFormat: 'Bridge Client Session Token', scheme: 'bearer', type: 'http', }, certified_client: { bearerFormat: 'Certified Client', scheme: 'bearer', type: 'http', }, certified_client_optional: { bearerFormat: 'Certified Client (Optional)', scheme: 'bearer', type: 'http', }, client_session: { bearerFormat: 'Client Session Token', scheme: 'bearer', type: 'http', }, client_session_token: { in: 'header', name: 'client-session-token', type: 'apiKey', }, client_session_with_customer: { bearerFormat: 'Customer Client Session Token', scheme: 'bearer', type: 'http', }, client_session_with_customer_ro: { bearerFormat: 'Customer Client Session Token (Read-Only)', scheme: 'bearer', type: 'http', }, console_session_with_workspace: { bearerFormat: 'Console Session Token', scheme: 'bearer', type: 'http', }, console_session_without_workspace: { bearerFormat: 'Console Session Token', scheme: 'bearer', type: 'http', }, internal_billing_service_account: { bearerFormat: 'Seam Internal Billing Service Account Key', scheme: 'bearer', type: 'http', }, internal_service_agent: { bearerFormat: 'Internal Service Agent Key', scheme: 'bearer', type: 'http', }, pat_with_workspace: { bearerFormat: 'API Token', scheme: 'bearer', type: 'http', }, pat_without_workspace: { bearerFormat: 'API Token', scheme: 'bearer', type: 'http', }, publishable_key: { in: 'header', name: 'seam-publishable-key', type: 'apiKey', }, seam_client_session_token: { in: 'header', name: 'seam-client-session-token', type: 'apiKey', }, seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' }, support_read_only_token: { bearerFormat: 'Support Read-Only Token', scheme: 'bearer', type: 'http', }, }, }, externalDocs: { description: 'Seam API documentation', url: 'https://www.seam.co/docs', }, info: { description: 'Programmable API to control locks, thermostats, noise sensors, cameras, access control systems, and other IoT devices.\n\nPrefer the official Seam SDKs over hand-written HTTP calls: they handle\nauthentication, request serialization, pagination, and error handling for\nyou. The official SDKs are listed in this document under\n`info.x-seam-sdks`.\n\nIf you call the HTTP API directly, your query parameters must be\nserialized compatibly with the Seam API. There is no universal convention\nfor serializing arrays, booleans, or nested objects in a query string, so\nuse @seamapi/url-search-params-serializer, the language specific serializer module provided by each Seam SDK, or follow its specification:\nhttps://github.com/seamapi/url-search-params-serializer', title: 'Seam Connect', version: '1.0.0', 'x-seam-query-serializer': { description: 'Reference implementation and specification for query parameter serialization compatible with the Seam API.', url: 'https://github.com/seamapi/url-search-params-serializer', }, 'x-seam-sdks': [ { language: 'javascript', url: 'https://github.com/seamapi/javascript' }, { language: 'python', url: 'https://github.com/seamapi/python' }, { language: 'ruby', url: 'https://github.com/seamapi/ruby' }, { language: 'php', url: 'https://github.com/seamapi/php' }, { language: 'csharp', url: 'https://github.com/seamapi/csharp' }, ], }, openapi: '3.0.0', paths: { '/access_codes/create': { post: { description: 'Creates a new [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). For granting access, we recommend [Access Grants](https://www.seam.co/docs/use-cases/granting-access) instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.', operationId: 'accessCodesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { allow_external_modification: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, attempt_for_offline_device: { default: true, type: 'boolean', }, code: { description: 'Code to be used for access.', maxLength: 12, minLength: 4, pattern: '^\\d+$', type: 'string', }, common_code_key: { description: 'Key to identify access codes that should have the same code. Any two access codes with the same `common_code_key` are guaranteed to have the same `code`. See also [Creating and Updating Multiple Linked Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes).', minLength: 1, type: 'string', }, device_id: { description: 'ID of the device for which you want to create the new access code.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the validity of the new access code ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, is_external_modification_allowed: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, is_offline_access_code: { description: 'Indicates whether the access code is an [offline access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/offline-access-codes).', type: 'boolean', }, is_one_time_use: { description: 'Indicates whether the [offline access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code.', type: 'boolean', }, max_time_rounding: { description: 'Maximum rounding adjustment. To create a daily-bound [offline access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.', enum: ['1hour', '1day', '1h', '1d'], type: 'string', }, name: { description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", type: 'string', }, prefer_native_scheduling: { description: 'Indicates whether [native scheduling](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.', type: 'boolean', }, preferred_code_length: { description: 'Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.', format: 'float', type: 'number', }, starts_at: { description: 'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, use_backup_access_code_pool: { description: 'Indicates whether to use a [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://www.seam.co/docs/api/access_codes/pull_backup_access_code).', type: 'boolean', }, use_offline_access_code: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `is_offline_access_code` instead.', 'x-end-of-life': '2026-11-09', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_code: { $ref: '#/components/schemas/access_code' }, action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'access_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/create', tags: ['/access_codes'], 'x-action-attempt-type': 'CREATE_ACCESS_CODE', 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'access_code', 'x-response-key': 'access_code', 'x-title': 'Create an Access Code', }, }, '/access_codes/create_multiple': { put: { description: 'Creates new [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.\n\nUsers with more than one door lock in a property may want to create groups of linked access codes, all of which have the same code (PIN). For example, a short-term rental host may want to provide guests the same PIN for both a front door lock and a back door lock.\n\nIf you specify a custom code, Seam assigns this custom code to each of the resulting access codes. However, in this case, Seam does not link these access codes together with a `common_code_key`. That is, `common_code_key` remains null for these access codes.\n\nIf you want to change these access codes that are not linked by a `common_code_key`, you cannot use `/access_codes/update_multiple`. However, you can update each of these access codes individually, using `/access_codes/update`.\n\nSee also [Creating and Updating Multiple Linked Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes).\n\nFor granting a person access to a space, [Access Grants](https://www.seam.co/docs/use-cases/granting-access) are the default and recommended approach and work across both standalone smart locks and access systems. Use the lower-level Access Codes API directly only when you specifically need to manage individual PIN codes.', operationId: 'accessCodesCreateMultiplePut', requestBody: { content: { 'application/json': { schema: { properties: { allow_external_modification: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, attempt_for_offline_device: { default: true, type: 'boolean', }, behavior_when_code_cannot_be_shared: { default: 'throw', description: 'Desired behavior if any device cannot share a code. If `throw` (default), no access codes will be created if any device cannot share a code. If `create_random_code`, a random code will be created on devices that cannot share a code.', enum: ['throw', 'create_random_code'], type: 'string', }, code: { description: 'Code to be used for access.', maxLength: 12, minLength: 4, pattern: '^\\d+$', type: 'string', }, device_ids: { description: 'IDs of the devices for which you want to create the new access codes.', items: { format: 'uuid', type: 'string' }, type: 'array', }, ends_at: { description: 'Date and time at which the validity of the new access code ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, is_external_modification_allowed: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, name: { description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", type: 'string', }, prefer_native_scheduling: { description: 'Indicates whether [native scheduling](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`.', type: 'boolean', }, preferred_code_length: { description: 'Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.', format: 'float', type: 'number', }, starts_at: { description: 'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, use_backup_access_code_pool: { description: 'Indicates whether to use a [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://www.seam.co/docs/api/access_codes/pull_backup_access_code).', type: 'boolean', }, }, required: ['device_ids'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_codes: { items: { $ref: '#/components/schemas/access_code' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['access_codes', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/create_multiple', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'create_multiple', 'x-fern-sdk-return-value': 'access_codes', 'x-response-key': 'access_codes', 'x-title': 'Create Multiple Linked Access Codes', }, }, '/access_codes/delete': { delete: { description: 'Deletes an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).', operationId: 'accessCodesDeleteDelete', parameters: [ { in: 'query', name: 'device_id', required: false, schema: { description: 'ID of the device for which you want to delete the access code.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_id', required: true, schema: { description: 'ID of the access code that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/delete', tags: ['/access_codes'], 'x-action-attempt-type': 'DELETE_ACCESS_CODE', 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Access Code', }, }, '/access_codes/generate_code': { get: { description: 'Generates a code for an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes), given a device ID.', operationId: 'accessCodesGenerateCodeGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the device for which you want to generate a code.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { generated_code: { $ref: '#/components/schemas/access_code', }, ok: { type: 'boolean' }, }, required: ['generated_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_codes/generate_code', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'generate_code', 'x-fern-sdk-return-value': 'generated_code', 'x-response-key': 'generated_code', 'x-title': 'Generate a Code', }, }, '/access_codes/get': { get: { description: 'Returns a specified [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).\n\nYou must specify either `access_code_id` or both `device_id` and `code`.', operationId: 'accessCodesGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the device containing the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_id', schema: { description: 'ID of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'code', schema: { description: 'Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_code: { $ref: '#/components/schemas/access_code' }, ok: { type: 'boolean' }, }, required: ['access_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_codes/get', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_code', 'x-has-required-parameters': true, 'x-response-key': 'access_code', 'x-title': 'Get an Access Code', }, }, '/access_codes/get_timeline': { get: { description: 'Returns a chronological timeline of events for an access code.\n\nThe timeline includes state changes (create, update, delete), delivery lifecycle events\n(programming attempts, success/failure), and related device events.', operationId: 'accessCodesGetTimelineGet', parameters: [ { in: 'query', name: 'access_code_id', required: true, schema: { description: 'ID of the access code for which to retrieve the timeline.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', required: false, schema: { default: 50, description: 'Maximum number of timeline events to return (default 50, max 200).', format: 'float', maximum: 200, minimum: 1, type: 'number', }, }, { in: 'query', name: 'before', required: false, schema: { description: 'Only return events that occurred before this timestamp (ISO 8601 format).', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'after', required: false, schema: { description: 'Only return events that occurred after this timestamp (ISO 8601 format).', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'event_types', required: false, schema: { description: 'Filter to only return specific event types.', items: { enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.deleted', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'internal.access_code.programming_started', 'internal.access_code.programming_finished', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', ], type: 'string', }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { properties: { has_more: { type: 'boolean' }, next_cursor: { nullable: true, type: 'string' }, prev_cursor: { nullable: true, type: 'string' }, }, required: ['has_more', 'next_cursor', 'prev_cursor'], type: 'object', }, timeline_events: { items: { description: 'Timeline event for access code lifecycle activity.', properties: { actor: { description: 'Information about who or what triggered this event.', properties: { display_name: { description: 'Human-readable name for the actor.', type: 'string', }, id: { description: 'The ID of the actor (API key ID, user ID, etc.).', type: 'string', }, type: { description: 'The type of actor that triggered this event.', enum: [ 'api_key', 'console_user', 'system', 'external', ], type: 'string', }, }, required: ['type'], type: 'object', }, description: { description: 'Human-readable description of what happened.', type: 'string', }, details: { additionalProperties: { $ref: '#/components/schemas/access_code', }, description: 'Event-specific details and payload data.', type: 'object', }, event_type: { description: 'The type of timeline event.', enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.deleted', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'internal.access_code.programming_started', 'internal.access_code.programming_finished', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', ], type: 'string', 'x-undocumented': 'Unreleased.', }, occurred_at: { description: 'ISO 8601 timestamp when the event occurred.', format: 'date-time', type: 'string', }, related_resource_ids: { description: 'IDs of related resources for cross-referencing.', properties: { action_attempt_id: { format: 'uuid', type: 'string', }, connected_account_id: { format: 'uuid', type: 'string', }, device_id: { format: 'uuid', type: 'string' }, event_id: { format: 'uuid', type: 'string' }, }, type: 'object', }, timeline_event_id: { description: 'Unique identifier for this timeline event.', format: 'uuid', type: 'string', }, }, required: [ 'timeline_event_id', 'event_type', 'occurred_at', 'description', 'actor', ], type: 'object', 'x-undocumented': 'Unreleased.', }, type: 'array', }, }, required: ['timeline_events', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/access_codes/get_timeline', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'get_timeline', 'x-fern-sdk-return-value': 'timeline_events', 'x-response-key': 'timeline_events', 'x-title': 'Get Access Code Timeline', 'x-undocumented': 'Unreleased.', }, }, '/access_codes/list': { get: { description: 'Returns a list of all [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).\n\nWithout `device_id`, `access_code_ids`, `access_method_id`, `access_grant_id`, or `access_grant_key`, returns access codes across the workspace, or across the customer when `customer_key` is set. Use `limit` and `page_cursor` to page through them.', operationId: 'accessCodesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list access codes.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'device_id', schema: { description: 'ID of the device for which you want to list access codes.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_ids', schema: { description: 'IDs of the access codes that you want to retrieve.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'access_method_id', schema: { description: 'ID of the access method for which you want to list access codes.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_id', schema: { description: 'ID of the access grant for which you want to list access codes.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_key', schema: { description: 'Key of the access grant for which you want to list access codes.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'user_identifier_key', schema: { description: 'Your user ID for the user by which to filter access codes.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 55_000, description: 'Numerical limit on the number of access codes to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_codes: { items: { $ref: '#/components/schemas/access_code' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['access_codes', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_codes/list', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_codes', 'x-response-key': 'access_codes', 'x-title': 'List Access Codes', }, }, '/access_codes/pull_backup_access_code': { post: { description: "Retrieves a backup access code for an [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). See also [Managing Backup Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes).\n\nA backup access code pool is a collection of pre-programmed access codes stored on a device, ready for use. These codes are programmed in addition to the regular access codes on Seam, serving as a safety net for any issues with the primary codes. If there's ever a complication with a primary access code—be it due to intermittent connectivity, manual removal from a device, or provider outages—a backup code can be retrieved. Its end time can then be adjusted to align with the original code, facilitating seamless and uninterrupted access.\n\nYou can pull a backup access code from the pool at any time. These backup codes are guaranteed to work immediately and automatically programmed to be removed from the device after the access code ends.\n\nYou can only pull backup access codes for time-bound access codes.\n\nBefore pulling a backup access code, make sure that the device's `properties.supports_backup_access_code_pool` is `true`. Then, to activate the backup pool, set `use_backup_access_code_pool` to `true` when creating an access code.", operationId: 'accessCodesPullBackupAccessCodePost', requestBody: { content: { 'application/json': { schema: { properties: { access_code_id: { description: 'ID of the access code for which you want to pull a backup access code.', format: 'uuid', type: 'string', }, }, required: ['access_code_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_code: { $ref: '#/components/schemas/access_code' }, backup_access_code: { $ref: '#/components/schemas/access_code', }, ok: { type: 'boolean' }, }, required: ['backup_access_code', 'access_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/pull_backup_access_code', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'pull_backup_access_code', 'x-fern-sdk-return-value': 'access_code', 'x-response-key': 'access_code', 'x-title': 'Pull a Backup Access Code', }, }, '/access_codes/report_device_constraints': { post: { description: 'Enables you to report access code-related constraints for a device. Currently, supports reporting supported code length constraints for SmartThings devices.\n\nSpecify either `supported_code_lengths` or `min_code_length`/`max_code_length`.', operationId: 'accessCodesReportDeviceConstraintsPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for which you want to report constraints.', format: 'uuid', type: 'string', }, max_code_length: { description: 'Maximum supported code length as an integer between 4 and 20, inclusive. You can specify either `min_code_length`/`max_code_length` or `supported_code_lengths`.', maximum: 20, minimum: 4, type: 'integer', }, min_code_length: { description: 'Minimum supported code length as an integer between 4 and 20, inclusive. You can specify either `min_code_length`/`max_code_length` or `supported_code_lengths`.', maximum: 20, minimum: 4, type: 'integer', }, supported_code_lengths: { description: 'Array of supported code lengths as integers between 4 and 20, inclusive. You can specify either `supported_code_lengths` or `min_code_length`/`max_code_length`.', items: { maximum: 20, minimum: 4, type: 'integer' }, minItems: 1, type: 'array', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/report_device_constraints', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'report_device_constraints', 'x-response-key': null, 'x-title': 'Report Device Access Code Constraints', }, }, '/access_codes/simulate/create_unmanaged_access_code': { post: { description: 'Simulates the creation of an [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) in a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'accessCodesSimulateCreateUnmanagedAccessCodePost', requestBody: { content: { 'application/json': { schema: { properties: { code: { description: 'Code of the simulated unmanaged access code.', maxLength: 8, minLength: 4, pattern: '^\\d+$', type: 'string', }, device_id: { description: 'ID of the device for which you want to simulate the creation of an unmanaged access code.', format: 'uuid', type: 'string', }, name: { description: 'Name of the simulated unmanaged access code.', type: 'string', }, }, required: ['device_id', 'name', 'code'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_code: { $ref: '#/components/schemas/unmanaged_access_code', }, ok: { type: 'boolean' }, }, required: ['access_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/simulate/create_unmanaged_access_code', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes', 'simulate'], 'x-fern-sdk-method-name': 'create_unmanaged_access_code', 'x-fern-sdk-return-value': 'access_code', 'x-response-key': 'access_code', 'x-title': 'Simulate Creating an Unmanaged Access Code', }, }, '/access_codes/unmanaged/convert_to_managed': { patch: { description: 'Converts an [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) to an [access code managed through Seam](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).\n\nAn unmanaged access code has a limited set of operations that you can perform on it. Once you convert an unmanaged access code to a managed access code, the full set of access code operations and lifecycle events becomes available for it.\n\nNote that not all device providers support converting an unmanaged access code to a managed access code.', operationId: 'accessCodesUnmanagedConvertToManagedPatch', requestBody: { content: { 'application/json': { schema: { properties: { access_code_id: { description: 'ID of the unmanaged access code that you want to convert to a managed access code.', format: 'uuid', type: 'string', }, allow_external_modification: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed.', type: 'boolean', }, force: { description: 'Indicates whether to force the access code conversion. To switch management of an access code from one Seam workspace to another, set `force` to `true`.', type: 'boolean', }, is_external_modification_allowed: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed.', type: 'boolean', }, }, required: ['access_code_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/unmanaged/convert_to_managed', tags: ['/access_codes'], 'x-action-attempt-type': 'CONVERT_ACCESS_CODE_TO_MANAGED', 'x-fern-sdk-group-name': ['access_codes', 'unmanaged'], 'x-fern-sdk-method-name': 'convert_to_managed', 'x-response-key': null, 'x-title': 'Convert an Unmanaged Access Code', }, }, '/access_codes/unmanaged/delete': { delete: { description: 'Deletes an [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).', operationId: 'accessCodesUnmanagedDeleteDelete', parameters: [ { in: 'query', name: 'access_code_id', required: true, schema: { description: 'ID of the unmanaged access code that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/unmanaged/delete', tags: ['/access_codes'], 'x-action-attempt-type': 'DELETE_ACCESS_CODE', 'x-fern-sdk-group-name': ['access_codes', 'unmanaged'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Unmanaged Access Code', }, }, '/access_codes/unmanaged/get': { get: { description: 'Returns a specified [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).\n\nYou must specify either `access_code_id` or both `device_id` and `code`.', operationId: 'accessCodesUnmanagedGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the device containing the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_id', schema: { description: 'ID of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'code', schema: { description: 'Code of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_code: { $ref: '#/components/schemas/unmanaged_access_code', }, ok: { type: 'boolean' }, }, required: ['access_code', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_codes/unmanaged/get', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_code', 'x-has-required-parameters': true, 'x-response-key': 'access_code', 'x-title': 'Get an Unmanaged Access Code', }, }, '/access_codes/unmanaged/list': { get: { description: 'Returns a list of all [unmanaged access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).', operationId: 'accessCodesUnmanagedListGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the device for which you want to list unmanaged access codes.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identifier_key', required: false, schema: { description: 'Your user ID for the user by which to filter unmanaged access codes.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', required: false, schema: { default: 300_000, description: 'Numerical limit on the number of unmanaged access codes to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'search', required: false, schema: { description: 'String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'page_cursor', required: false, schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_codes: { items: { $ref: '#/components/schemas/unmanaged_access_code', }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['access_codes', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_codes/unmanaged/list', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_codes', 'x-response-key': 'access_codes', 'x-title': 'List Unmanaged Access Codes', }, }, '/access_codes/unmanaged/update': { patch: { description: 'Updates a specified [unmanaged access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes).', operationId: 'accessCodesUnmanagedUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_code_id: { description: 'ID of the unmanaged access code that you want to update.', format: 'uuid', type: 'string', }, allow_external_modification: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed.', type: 'boolean', }, force: { description: 'Indicates whether to force the unmanaged access code update.', type: 'boolean', }, is_external_modification_allowed: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed.', type: 'boolean', }, is_managed: { type: 'boolean' }, }, required: ['access_code_id', 'is_managed'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/unmanaged/update', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes', 'unmanaged'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update an Unmanaged Access Code', }, }, '/access_codes/update': { patch: { description: 'Updates a specified active or upcoming [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).\n\nSee also [Modifying Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/modifying-access-codes).', operationId: 'accessCodesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_code_id: { description: 'ID of the access code that you want to update.', format: 'uuid', type: 'string', }, allow_external_modification: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, attempt_for_offline_device: { default: true, type: 'boolean', }, code: { description: 'Code to be used for access.', maxLength: 12, minLength: 4, pattern: '^\\d+$', type: 'string', }, device_id: { description: 'ID of the device containing the access code that you want to update.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the validity of the new access code ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, is_external_modification_allowed: { description: 'Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.', type: 'boolean', }, is_managed: { description: 'Indicates whether the access code is managed through Seam. Note that to convert an unmanaged access code into a managed access code, use `/access_codes/unmanaged/convert_to_managed`.', type: 'boolean', }, name: { description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", type: 'string', }, starts_at: { description: 'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, type: { description: 'Type to which you want to convert the access code. To convert a time-bound access code to an ongoing access code, set `type` to `ongoing`. See also [Changing a time-bound access code to permanent access](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/modifying-access-codes#special-case-2-changing-a-time-bound-access-code-to-permanent-access).', enum: ['ongoing', 'time_bound'], type: 'string', }, }, required: ['access_code_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/update', tags: ['/access_codes'], 'x-action-attempt-type': 'UPDATE_ACCESS_CODE', 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update an Access Code', }, }, '/access_codes/update_multiple': { patch: { description: 'Updates [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) that share a common code across multiple devices.\n\nSpecify the `common_code_key` to identify the set of access codes that you want to update.\n\nSee also [Update Linked Access Codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/creating-and-updating-multiple-linked-access-codes#update-linked-access-codes).', operationId: 'accessCodesUpdateMultiplePatch', requestBody: { content: { 'application/json': { schema: { properties: { common_code_key: { description: 'Key that links the group of access codes, assigned on creation by `/access_codes/create_multiple`.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the validity of the new access code ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', type: 'string', }, name: { description: "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).", type: 'string', }, starts_at: { description: 'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, }, required: ['common_code_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_codes/update_multiple', tags: ['/access_codes'], 'x-fern-sdk-group-name': ['access_codes'], 'x-fern-sdk-method-name': 'update_multiple', 'x-response-key': null, 'x-title': 'Update Multiple Linked Access Codes', }, }, '/access_grants/create': { post: { description: 'Creates a new [Access Grant](https://www.seam.co/docs/use-cases/granting-access). Access Grants are the default and recommended way to grant a user access to any physical space, irrespective of the locking hardware. They work with both standalone smart locks (using `device_ids`) and access control systems (using `acs_entrance_ids` or `space_ids`), and can issue PIN codes, key cards, and mobile keys through a single request.', operationId: 'accessGrantsCreatePost', requestBody: { content: { 'application/json': { schema: { allOf: [ { oneOf: [ { properties: { user_identity_id: { description: 'ID of user identity for whom access is being granted.', format: 'uuid', type: 'string', }, }, required: ['user_identity_id'], type: 'object', }, { properties: { user_identity: { description: 'When used, creates a new user identity with the given details, and grants them access.', properties: { email_address: { description: 'Unique email address for the user identity.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the user associated with the user identity.', minLength: 1, nullable: true, type: 'string', }, phone_number: { description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).', nullable: true, type: 'string', }, user_identity_key: { description: 'Unique key for the user identity.', minLength: 1, nullable: true, type: 'string', }, }, type: 'object', }, }, required: ['user_identity'], type: 'object', }, ], }, { properties: { access_grant_key: { description: 'Unique key for the access grant within the workspace.', minLength: 1, type: 'string', }, acs_entrance_ids: { default: [], description: 'Set of IDs of the [entrances](https://www.seam.co/docs/api/acs/systems/list) to which access is being granted.', items: { format: 'uuid', type: 'string' }, type: 'array', }, customization_profile_id: { description: 'ID of the customization profile to apply to the Access Grant and its access methods.', format: 'uuid', type: 'string', }, device_ids: { default: [], description: 'Set of IDs of the [devices](https://www.seam.co/docs/api/devices/list) to which access is being granted.', items: { format: 'uuid', type: 'string' }, type: 'array', }, ends_at: { default: null, description: 'Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', nullable: true, type: 'string', }, location: { deprecated: true, properties: { acs_entrance_ids: { default: [], deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `acs_entrance_ids` at the top level.', 'x-end-of-life': '2026-11-09', }, device_ids: { default: [], deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `device_ids` at the top level.', 'x-end-of-life': '2026-11-09', }, name: { description: 'Name of the location.', type: 'string', }, }, type: 'object', 'x-deprecated': 'Create a space first, then reference it using `space_ids`.', 'x-end-of-life': '2026-11-09', }, location_ids: { deprecated: true, items: { format: 'uuid', type: 'string' }, type: 'array', 'x-deprecated': 'Use `space_ids`.', 'x-end-of-life': '2026-11-09', }, name: { description: 'Name for the access grant.', nullable: true, type: 'string', }, requested_access_methods: { items: { properties: { code: { description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.", maxLength: 9, minLength: 4, pattern: '^\\d+$', type: 'string', }, instant_key_max_use_count: { description: "Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.", minimum: 1, type: 'integer', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, }, required: ['mode'], type: 'object', }, type: 'array', }, reservation_key: { description: 'Reservation key for the access grant.', minLength: 1, type: 'string', }, space_ids: { description: 'Set of IDs of existing spaces to which access is being granted.', items: { format: 'uuid', type: 'string' }, type: 'array', }, space_keys: { description: 'Set of keys of existing spaces to which access is being granted.', items: { minLength: 1, type: 'string' }, type: 'array', }, starts_at: { description: 'Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, }, required: ['requested_access_methods'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_grant: { $ref: '#/components/schemas/access_grant' }, ok: { type: 'boolean' }, }, required: ['access_grant', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_grants/create', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'access_grant', 'x-response-key': 'access_grant', 'x-title': 'Create an Access Grant', }, }, '/access_grants/delete': { delete: { description: 'Delete an Access Grant.', operationId: 'accessGrantsDeleteDelete', parameters: [ { in: 'query', name: 'access_grant_id', required: true, schema: { description: 'ID of Access Grant to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_grants/delete', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Access Grant', }, }, '/access_grants/get': { get: { description: 'Get an Access Grant.', operationId: 'accessGrantsGetGet', parameters: [ { in: 'query', name: 'access_grant_id', schema: { description: 'ID of Access Grant to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_key', schema: { description: 'Unique key of Access Grant to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grant: { $ref: '#/components/schemas/access_grant' }, ok: { type: 'boolean' }, }, required: ['access_grant', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_grants/get', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_grant', 'x-has-required-parameters': true, 'x-response-key': 'access_grant', 'x-title': 'Get an Access Grant', }, }, '/access_grants/get_related': { get: { description: 'Gets all related resources for one or more Access Grants.', operationId: 'accessGrantsGetRelatedGet', parameters: [ { in: 'query', name: 'access_grant_ids', schema: { description: 'IDs of the access grants that you want to get along with their related resources.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'access_grant_keys', schema: { description: 'Keys of the access grants that you want to get along with their related resources.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'include', schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'user_identities', 'acs_access_groups', 'access_methods', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'exclude', schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'user_identities', 'acs_access_groups', 'access_methods', ], type: 'string', }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { batch: { description: 'A batch of workspace resources.', properties: { access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, acs_access_groups: { items: { $ref: '#/components/schemas/acs_access_group', }, type: 'array', }, acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, connected_accounts: { items: { $ref: '#/components/schemas/connected_account', }, type: 'array', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, user_identities: { items: { $ref: '#/components/schemas/user_identity' }, type: 'array', }, }, type: 'object', 'x-route-path': '/workspaces', }, ok: { type: 'boolean' }, }, required: ['batch', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_grants/get_related', tags: [], 'x-batch-keys': [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'user_identities', 'acs_access_groups', 'access_methods', ], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'get_related', 'x-fern-sdk-return-value': 'batch', 'x-has-required-parameters': true, 'x-response-key': 'batch', 'x-title': 'Get related Access Grant resources', }, }, '/access_grants/list': { get: { description: 'Gets an Access Grant.', operationId: 'accessGrantsListGet', parameters: [ { in: 'query', name: 'access_grant_ids', schema: { description: 'IDs of the access grants to retrieve.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list access grants.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Numerical limit on the number of access grants to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of user identity by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_id', schema: { description: 'ID of the entrance by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_id', schema: { description: 'ID of the device by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'location_id', schema: { deprecated: true, format: 'uuid', type: 'string', 'x-deprecated': 'Use `space_id`.', 'x-end-of-life': '2026-11-09', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_id', schema: { description: 'ID of the access code by which you want to filter the list of Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_key', schema: { description: 'Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key.', minLength: 1, nullable: true, type: 'string', }, }, { in: 'query', name: 'reservation_key', schema: { description: 'Filter Access Grants by reservation_key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned Access Grants to include all records that satisfy a partial match using `name`, `access_grant_key`, `reservation_key`, `access_grant_id`, `user_identity_id`, `user_identity_full_name`, `user_identity_email_address` or `user_identity_phone_number`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['access_grants', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_grants/list', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_grants', 'x-response-key': 'access_grants', 'x-title': 'List Access Grants', }, }, '/access_grants/request_access_methods': { post: { description: 'Adds additional requested access methods to an existing Access Grant.', operationId: 'accessGrantsRequestAccessMethodsPost', requestBody: { content: { 'application/json': { schema: { properties: { access_grant_id: { description: 'ID of the Access Grant to add access methods to.', format: 'uuid', type: 'string', }, requested_access_methods: { description: 'Array of requested access methods to add to the access grant.', items: { properties: { code: { description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.", maxLength: 9, minLength: 4, pattern: '^\\d+$', type: 'string', }, instant_key_max_use_count: { description: "Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.", minimum: 1, type: 'integer', }, mode: { description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, }, required: ['mode'], type: 'object', }, minItems: 1, type: 'array', }, }, required: ['access_grant_id', 'requested_access_methods'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { access_grant: { $ref: '#/components/schemas/access_grant' }, ok: { type: 'boolean' }, }, required: ['access_grant', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_grants/request_access_methods', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'request_access_methods', 'x-fern-sdk-return-value': 'access_grant', 'x-response-key': 'access_grant', 'x-title': 'Add Requested Access Methods to Access Grant', }, }, '/access_grants/unmanaged/get': { get: { description: 'Get an unmanaged Access Grant (where is_managed = false).', operationId: 'accessGrantsUnmanagedGetGet', parameters: [ { in: 'query', name: 'access_grant_id', required: true, schema: { description: 'ID of unmanaged Access Grant to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grant: { $ref: '#/components/schemas/unmanaged_access_grant', }, ok: { type: 'boolean' }, }, required: ['access_grant', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_grants/unmanaged/get', tags: [], 'x-fern-sdk-group-name': ['access_grants', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_grant', 'x-response-key': 'access_grant', 'x-title': 'Get an Unmanaged Access Grant', }, }, '/access_grants/unmanaged/list': { get: { description: 'Gets unmanaged Access Grants (where is_managed = false).', operationId: 'accessGrantsUnmanagedListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list unmanaged Access Grants.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of user identity by which you want to filter the list of unmanaged Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system by which you want to filter the list of unmanaged Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_id', schema: { description: 'ID of the entrance by which you want to filter the list of unmanaged Access Grants.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'reservation_key', schema: { description: 'Filter unmanaged Access Grants by reservation_key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Numerical limit on the number of unmanaged access grants to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grants: { items: { $ref: '#/components/schemas/unmanaged_access_grant', }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['access_grants', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_grants/unmanaged/list', tags: [], 'x-fern-sdk-group-name': ['access_grants', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_grants', 'x-response-key': 'access_grants', 'x-title': 'List Unmanaged Access Grants', }, }, '/access_grants/unmanaged/update': { patch: { description: 'Updates an unmanaged Access Grant to make it managed.\n\nThis endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.\n\nWhen converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.', operationId: 'accessGrantsUnmanagedUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_grant_id: { description: 'ID of the unmanaged Access Grant to update.', format: 'uuid', type: 'string', }, access_grant_key: { description: 'Unique key for the access grant. If not provided, the existing key will be preserved.', minLength: 1, type: 'string', }, is_managed: { description: 'Must be set to true to convert the unmanaged access grant to managed.', enum: [true], type: 'boolean', }, }, required: ['access_grant_id', 'is_managed'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_grants/unmanaged/update', tags: [], 'x-fern-sdk-group-name': ['access_grants', 'unmanaged'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update an Unmanaged Access Grant', }, }, '/access_grants/update': { patch: { description: "Updates an existing Access Grant's time window.", operationId: 'accessGrantsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_grant_id: { description: 'ID of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.', format: 'uuid', type: 'string', }, access_grant_key: { description: 'Key of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', format: 'date-time', nullable: true, type: 'string', }, name: { description: 'Display name for the access grant.', nullable: true, type: 'string', }, starts_at: { description: 'Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_grants/update', tags: [], 'x-fern-sdk-group-name': ['access_grants'], 'x-fern-sdk-method-name': 'update', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Update an Access Grant', }, }, '/access_methods/assign_card': { post: { description: 'Assigns a pre-registered card credential, identified by `card_number`, to a card-mode access method. Use this endpoint for access systems that use pre-registered cards, where a physical card must be associated with an access method before it can be used for access. Assigning a card credential also triggers issuance of the access method.', operationId: 'accessMethodsAssignCardPost', requestBody: { content: { 'application/json': { schema: { properties: { access_method_id: { description: 'ID of the `access_method` to assign the credential to.', format: 'uuid', type: 'string', }, card_number: { description: 'Card number of the credential to assign.', type: 'string', }, }, required: ['access_method_id', 'card_number'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_methods/assign_card', tags: [], 'x-action-attempt-type': 'ASSIGN_CREDENTIAL', 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'assign_card', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Assign a Card Credential to an Access Method', }, }, '/access_methods/delete': { delete: { description: 'Deletes an access method.', operationId: 'accessMethodsDeleteDelete', parameters: [ { in: 'query', name: 'access_method_id', schema: { description: 'ID of access method to delete.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_id', schema: { description: 'ID of access grant whose access methods should be deleted.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'reservation_key', schema: { description: 'Reservation key of the access grant whose access methods should be deleted.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/access_methods/delete', tags: [], 'x-deprecated': 'Access methods are managed by their access grant. Some workflows still need this endpoint today; access grant routes will replace it for them soon.', 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'delete', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Delete an Access Method', }, }, '/access_methods/encode': { post: { description: 'Encodes an existing access method onto a plastic card placed on the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', operationId: 'accessMethodsEncodePost', requestBody: { content: { 'application/json': { schema: { properties: { access_method_id: { description: 'ID of the `access_method` to encode onto a card.', format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the `acs_encoder` to use to encode the `access_method`.', format: 'uuid', type: 'string', }, }, required: ['acs_encoder_id', 'access_method_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_methods/encode', tags: [], 'x-action-attempt-type': 'ENCODE_CREDENTIAL', 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'encode', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Encode an Access Method', }, }, '/access_methods/get': { get: { description: 'Gets an access method.', operationId: 'accessMethodsGetGet', parameters: [ { in: 'query', name: 'access_method_id', required: true, schema: { description: 'ID of access method to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_method: { $ref: '#/components/schemas/access_method', }, ok: { type: 'boolean' }, }, required: ['access_method', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_methods/get', tags: [], 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_method', 'x-response-key': 'access_method', 'x-title': 'Get an Access Method', }, }, '/access_methods/get_related': { get: { description: 'Gets all related resources for one or more Access Methods.', operationId: 'accessMethodsGetRelatedGet', parameters: [ { in: 'query', name: 'access_method_ids', required: true, schema: { description: 'IDs of the access methods that you want to get along with their related resources.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'include', required: false, schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'access_grants', 'access_methods', 'instant_keys', 'client_sessions', 'acs_credentials', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'exclude', required: false, schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'access_grants', 'access_methods', 'instant_keys', 'client_sessions', 'acs_credentials', ], type: 'string', }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { batch: { description: 'A batch of workspace resources.', properties: { access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, acs_credentials: { items: { $ref: '#/components/schemas/acs_credential', }, type: 'array', }, acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, client_sessions: { items: { $ref: '#/components/schemas/client_session', }, type: 'array', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, instant_keys: { items: { $ref: '#/components/schemas/instant_key' }, type: 'array', }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, }, type: 'object', 'x-route-path': '/workspaces', }, ok: { type: 'boolean' }, }, required: ['batch', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_methods/get_related', tags: [], 'x-batch-keys': [ 'spaces', 'devices', 'acs_entrances', 'access_grants', 'access_methods', 'instant_keys', 'client_sessions', 'acs_credentials', ], 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'get_related', 'x-fern-sdk-return-value': 'batch', 'x-response-key': 'batch', 'x-title': 'Get related Access Method resources', }, }, '/access_methods/list': { get: { description: 'Lists all access methods, usually filtered by Access Grant.', operationId: 'accessMethodsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list access methods.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'access_grant_id', schema: { description: 'ID of Access Grant to list access methods for.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_key', schema: { description: 'Key of Access Grant to list access methods for.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'device_id', schema: { description: 'ID of the device by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_id', schema: { description: 'ID of the entrance for which you want to retrieve all access methods that grant access to it.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_id', schema: { description: 'ID of the access code by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['access_methods', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_methods/list', tags: [], 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_methods', 'x-has-required-parameters': true, 'x-response-key': 'access_methods', 'x-title': 'List Access Methods', }, }, '/access_methods/unlock_door': { post: { description: 'Remotely unlocks a specified [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) using the cloud key credential associated with an access method. Returns an action attempt that tracks the progress of the unlock operation.', operationId: 'accessMethodsUnlockDoorPost', requestBody: { content: { 'application/json': { schema: { properties: { access_method_id: { description: 'ID of the cloud_key `access_method` to use for the unlock operation.', format: 'uuid', type: 'string', }, acs_entrance_id: { description: 'ID of the entrance to unlock.', format: 'uuid', type: 'string', }, }, required: ['access_method_id', 'acs_entrance_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/access_methods/unlock_door', tags: [], 'x-action-attempt-type': 'UNLOCK_DOOR', 'x-fern-sdk-group-name': ['access_methods'], 'x-fern-sdk-method-name': 'unlock_door', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Unlock a Door with an Access Method', }, }, '/access_methods/unmanaged/get': { get: { description: 'Gets an unmanaged access method (where is_managed = false).', operationId: 'accessMethodsUnmanagedGetGet', parameters: [ { in: 'query', name: 'access_method_id', required: true, schema: { description: 'ID of unmanaged access method to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_method: { $ref: '#/components/schemas/unmanaged_access_method', }, ok: { type: 'boolean' }, }, required: ['access_method', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/access_methods/unmanaged/get', tags: [], 'x-fern-sdk-group-name': ['access_methods', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'access_method', 'x-response-key': 'access_method', 'x-title': 'Get an Unmanaged Access Method', }, }, '/access_methods/unmanaged/list': { get: { description: 'Lists all unmanaged access methods (where is_managed = false), usually filtered by Access Grant.', operationId: 'accessMethodsUnmanagedListGet', parameters: [ { in: 'query', name: 'access_grant_id', required: true, schema: { description: 'ID of Access Grant to list unmanaged access methods for.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_id', required: false, schema: { description: 'ID of the device for which you want to retrieve all unmanaged access methods.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_id', required: false, schema: { description: 'ID of the entrance for which you want to retrieve all unmanaged access methods.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'space_id', required: false, schema: { description: 'ID of the space for which you want to retrieve all unmanaged access methods.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_methods: { items: { $ref: '#/components/schemas/unmanaged_access_method', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['access_methods', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/access_methods/unmanaged/list', tags: [], 'x-fern-sdk-group-name': ['access_methods', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_methods', 'x-response-key': 'access_methods', 'x-title': 'List Unmanaged Access Methods', }, }, '/acs/access_groups/add_user': { put: { description: 'Adds a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsAddUserPut', requestBody: { content: { 'application/json': { schema: { properties: { acs_access_group_id: { description: 'ID of the access group to which you want to add an access system user.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that you want to add to an access group. You can only provide one of acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the desired user identity that you want to add to an access group. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the access group membership belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created.', format: 'uuid', type: 'string', }, }, required: ['acs_access_group_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/access_groups/add_user', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'add_user', 'x-response-key': null, 'x-title': 'Add an ACS User to an Access Group', }, }, '/acs/access_groups/delete': { delete: { description: 'Deletes a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsDeleteDelete', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/access_groups/delete', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Access Group', }, }, '/acs/access_groups/get': { get: { description: 'Returns a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsGetGet', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_access_group: { $ref: '#/components/schemas/acs_access_group', }, ok: { type: 'boolean' }, }, required: ['acs_access_group', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/access_groups/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_access_group', 'x-response-key': 'acs_access_group', 'x-title': 'Get an Access Group', }, }, '/acs/access_groups/list': { get: { description: 'Returns a list of all [access groups](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsListGet', parameters: [ { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all access groups.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user for which you want to retrieve all access groups.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to retrieve all access groups.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access groups to include all records that satisfy a partial match using `name` or `acs_access_group_id`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_access_groups: { items: { $ref: '#/components/schemas/acs_access_group' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_access_groups', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/access_groups/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_access_groups', 'x-response-key': 'acs_access_groups', 'x-title': 'List Access Groups', }, }, '/acs/access_groups/list_accessible_entrances': { get: { description: 'Returns a list of all accessible entrances for a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsListAccessibleEntrancesGet', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group for which you want to retrieve all accessible entrances.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_entrances', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/acs/access_groups/list_accessible_entrances', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'list_accessible_entrances', 'x-fern-sdk-return-value': 'acs_entrances', 'x-response-key': 'acs_entrances', 'x-title': 'List Entrances Accessible to an Access Group', }, }, '/acs/access_groups/list_users': { get: { description: 'Returns a list of all [access system users](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in an [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsListUsersGet', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group for which you want to retrieve all access system users.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_users: { items: { $ref: '#/components/schemas/acs_user' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_users', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/access_groups/list_users', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'list_users', 'x-fern-sdk-return-value': 'acs_users', 'x-response-key': 'acs_users', 'x-title': 'List ACS Users in an Access Group', }, }, '/acs/access_groups/remove_user': { delete: { description: 'Removes a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) from a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsRemoveUserDelete', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group from which you want to remove an access system user.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_user_id', required: false, schema: { description: 'ID of the access system user that you want to remove from an access group.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', required: false, schema: { description: 'ID of the user identity associated with the user that you want to remove from an access group.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/access_groups/remove_user', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups'], 'x-fern-sdk-method-name': 'remove_user', 'x-response-key': null, 'x-title': 'Remove an ACS User from an Access Group', }, }, '/acs/access_groups/unmanaged/get': { get: { description: 'Returns a specified unmanaged [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsUnmanagedGetGet', parameters: [ { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the unmanaged access group that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_access_group: { $ref: '#/components/schemas/unmanaged_acs_access_group', }, ok: { type: 'boolean' }, }, required: ['acs_access_group', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/access_groups/unmanaged/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_access_group', 'x-response-key': 'acs_access_group', 'x-title': 'Get an Unmanaged Access Group', 'x-undocumented': 'No unmanaged access groups are currently implemented.', }, }, '/acs/access_groups/unmanaged/list': { get: { description: 'Returns a list of all unmanaged [access groups](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsAccessGroupsUnmanagedListGet', parameters: [ { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all unmanaged access groups.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user for which you want to retrieve all unmanaged access groups.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access groups to include all records that satisfy a partial match using `name` or `acs_access_group_id`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_access_groups: { items: { $ref: '#/components/schemas/unmanaged_acs_access_group', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_access_groups', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/access_groups/unmanaged/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'access_groups', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_access_groups', 'x-response-key': 'acs_access_groups', 'x-title': 'List Unmanaged Access Groups', 'x-undocumented': 'No unmanaged access groups are currently implemented.', }, }, '/acs/credential_pools/list': { get: { description: 'Returns a list of all credential pools.', operationId: 'acsCredentialPoolsListGet', parameters: [ { in: 'query', name: 'acs_system_id', required: true, schema: { description: 'ID of the access system for which you want to list credential pools.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential_pools: { items: { $ref: '#/components/schemas/acs_credential_pool', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_credential_pools', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credential_pools/list', tags: ['/acs'], 'x-deprecated': 'Use `/user_identities/enrollment_automations/list` instead.', 'x-end-of-life': '2026-11-09', 'x-fern-sdk-group-name': ['acs', 'credential_pools'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_credential_pools', 'x-response-key': 'acs_credential_pools', 'x-title': 'List Credential Pools', 'x-undocumented': 'Replaced by enrollment automations.', }, }, '/acs/credential_provisioning_automations/launch': { post: { description: 'Launches a credential provisioning automation.', operationId: 'acsCredentialProvisioningAutomationsLaunchPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_pool_id: { description: 'ID of the credential pool for which you want to launch a credential provisioning automation.', format: 'uuid', type: 'string', }, create_credential_manager_user: { description: 'Indicates whether to create an associated credential manager user. If you set `create_credential_manager_user` to `true`, you cannot specify a `credential_manager_acs_user_id`.', type: 'boolean', }, credential_manager_acs_system_id: { description: 'Access system ID of the credential manager for which you want to launch a credential provisioning automation.', format: 'uuid', type: 'string', }, credential_manager_acs_user_id: { description: 'ID of the associated access system user within the credential manager. If you specify a `credential_manager_acs_user_id`, you cannot set `create_credential_manager_user` to `true`.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity for which you want to launch a credential provisioning automation.', format: 'uuid', type: 'string', }, }, required: [ 'user_identity_id', 'credential_manager_acs_system_id', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential_provisioning_automation: { $ref: '#/components/schemas/acs_credential_provisioning_automation', }, ok: { type: 'boolean' }, }, required: ['acs_credential_provisioning_automation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credential_provisioning_automations/launch', tags: ['/acs'], 'x-deprecated': 'Use `/user_identities/enrollment_automations/launch` instead.', 'x-end-of-life': '2026-11-09', 'x-fern-sdk-group-name': ['acs', 'credential_provisioning_automations'], 'x-fern-sdk-method-name': 'launch', 'x-fern-sdk-return-value': 'acs_credential_provisioning_automation', 'x-response-key': 'acs_credential_provisioning_automation', 'x-title': 'Launch a Credential Provisioning Automation', 'x-undocumented': 'Replaced by enrollment automations.', }, }, '/acs/credentials/assign': { patch: { description: 'Assigns a specified [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) to a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsCredentialsAssignPatch', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_id: { description: 'ID of the credential that you want to assign to an access system user.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the credential belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created.', format: 'uuid', type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/assign', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'assign', 'x-response-key': null, 'x-title': 'Assign a Credential to an ACS User', }, }, '/acs/credentials/create': { post: { description: 'Creates a new [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) for a specified [ACS user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). For granting access, we recommend [Access Grants](https://www.seam.co/docs/use-cases/granting-access) instead: they create and manage the underlying credentials for you, across access systems and standalone smart locks alike. Use this low-level endpoint only when you need direct control over an individual ACS credential.', operationId: 'acsCredentialsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { access_method: { description: 'Access method for the new credential. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.', enum: ['code', 'card', 'mobile_key', 'cloud_key'], type: 'string', }, acs_system_id: { description: 'ID of the access system to which the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user to whom the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`.', format: 'uuid', type: 'string', }, allowed_acs_entrance_ids: { default: [], description: 'Set of IDs of the [entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) for which the new credential grants access.', items: { format: 'uuid', type: 'string' }, type: 'array', }, assa_abloy_vostio_metadata: { description: 'Vostio-specific metadata for the new credential.', properties: { auto_join: { type: 'boolean' }, join_all_guest_acs_entrances: { type: 'boolean' }, override_all_guest_acs_entrances: { type: 'boolean' }, override_guest_acs_entrance_ids: { items: { format: 'uuid', type: 'string' }, type: 'array', }, }, type: 'object', }, code: { description: 'Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable [device or system integration guide](https://www.seam.co/docs/device-and-system-integration-guides).', pattern: '^\\d+$', type: 'string', }, credential_manager_acs_system_id: { description: 'ACS system ID of the credential manager for the new credential.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', format: 'date-time', type: 'string', }, hotek_metadata: { properties: { auto_join: { type: 'boolean' }, override: { type: 'boolean' }, }, type: 'object', 'x-undocumented': 'in development', }, is_multi_phone_sync_credential: { default: false, description: 'Indicates whether the new credential is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).', type: 'boolean', }, salto_space_metadata: { description: 'Salto Space-specific metadata for the new credential.', properties: { assign_new_key: { description: 'Indicates whether to assign a first, new card to a user. See also [Programming Salto Space Card-based Credentials](https://www.seam.co/docs/device-and-system-integration-guides/salto-proaccess-space-access-system/programming-salto-space-card-based-credentials).', type: 'boolean', }, update_current_key: { description: "Indicates whether to update the user's existing card. See also [Programming Salto Space Card-based Credentials](https://www.seam.co/docs/device-and-system-integration-guides/salto-proaccess-space-access-system/programming-salto-space-card-based-credentials).", type: 'boolean', 'x-undocumented': 'Not used. Will be deprecated.', }, }, type: 'object', }, starts_at: { description: 'Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, user_identity_id: { description: 'ID of the user identity to whom the new credential belongs. You must provide either `acs_user_id` or the combination of `user_identity_id` and `acs_system_id`. If the access system contains a user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the credential belongs to the access system user. If the access system does not have a corresponding user, one is created.', format: 'uuid', type: 'string', }, visionline_metadata: { description: 'Visionline-specific metadata for the new credential.', properties: { assa_abloy_credential_service_mobile_endpoint_id: { deprecated: true, format: 'uuid', type: 'string', 'x-deprecated': 'Read-only endpoint references moved to `endpoint`.', 'x-end-of-life': '2026-11-09', 'x-undocumented': 'Deprecated. Read-only endpoint references moved to `endpoint`.', }, auto_join: { type: 'boolean' }, card_format: { enum: ['TLCode', 'rfid48'], type: 'string', }, card_function_type: { default: 'guest', enum: ['guest', 'staff'], type: 'string', }, is_override_key: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `override` instead.', 'x-end-of-life': '2026-11-09', 'x-undocumented': 'Use `override` instead.', }, joiner_acs_credential_ids: { items: { format: 'uuid', type: 'string' }, type: 'array', }, override: { type: 'boolean' }, }, type: 'object', }, }, required: ['access_method'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/create', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'acs_credential', 'x-response-key': 'acs_credential', 'x-title': 'Create a Credential for an ACS User', }, }, '/acs/credentials/create_offline_code': { post: { description: 'Creates a new offline [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) for a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsCredentialsCreateOfflineCodePost', requestBody: { content: { 'application/json': { schema: { properties: { acs_user_id: { description: 'ID of the access system user to whom the new credential belongs.', format: 'uuid', type: 'string', }, allowed_acs_entrance_id: { description: 'IDs of the [`acs_entrance`s](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) for which the new credential grants access.', format: 'uuid', type: 'string', }, ends_at: { description: 'Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', format: 'date-time', type: 'string', }, is_one_time_use: { default: false, description: 'Indicates whether the code is one-time-use or reusable.', type: 'boolean', }, starts_at: { description: 'Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, }, required: ['acs_user_id', 'allowed_acs_entrance_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/create_offline_code', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'create_offline_code', 'x-fern-sdk-return-value': 'acs_credential', 'x-response-key': 'acs_credential', 'x-title': 'Create an Offline Credential for an ACS User', 'x-undocumented': 'Unreleased.', }, }, '/acs/credentials/delete': { delete: { description: 'Deletes a specified [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsDeleteDelete', parameters: [ { in: 'query', name: 'acs_credential_id', required: true, schema: { description: 'ID of the credential that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/delete', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Credential', }, }, '/acs/credentials/get': { get: { description: 'Returns a specified [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsGetGet', parameters: [ { in: 'query', name: 'acs_credential_id', required: true, schema: { description: 'ID of the credential that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/credentials/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_credential', 'x-response-key': 'acs_credential', 'x-title': 'Get a Credential', }, }, '/acs/credentials/list': { get: { description: 'Returns a list of all [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsListGet', parameters: [ { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Number of credentials to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'created_before', schema: { description: 'Date and time, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, before which events to return were created.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'is_multi_phone_sync_credential', schema: { description: 'Indicates whether you want to retrieve only multi-phone sync credentials or non-multi-phone sync credentials.', type: 'boolean', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credentials: { items: { $ref: '#/components/schemas/acs_credential' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['acs_credentials', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/acs/credentials/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_credentials', 'x-response-key': 'acs_credentials', 'x-title': 'List Credentials', }, }, '/acs/credentials/list_accessible_entrances': { get: { description: 'Returns a list of all [entrances](https://www.seam.co/docs/api/acs/entrances/object) to which a [credential](https://www.seam.co/docs/api/acs/credentials/object) grants access.', operationId: 'acsCredentialsListAccessibleEntrancesGet', parameters: [ { in: 'query', name: 'acs_credential_id', required: true, schema: { description: 'ID of the credential for which you want to retrieve all entrances to which the credential grants access.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_entrances', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/acs/credentials/list_accessible_entrances', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'list_accessible_entrances', 'x-fern-sdk-return-value': 'acs_entrances', 'x-response-key': 'acs_entrances', 'x-title': 'List Accessible Entrances', }, }, '/acs/credentials/unassign': { patch: { description: 'Unassigns a specified [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) from a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsCredentialsUnassignPatch', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_id: { description: 'ID of the credential that you want to unassign from an access system user.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/unassign', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'unassign', 'x-response-key': null, 'x-title': 'Unassign a Credential from an ACS User', }, }, '/acs/credentials/unmanaged/get': { get: { description: 'Returns a specified unmanaged [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsUnmanagedGetGet', parameters: [ { in: 'query', name: 'acs_credential_id', required: true, schema: { description: 'ID of the unmanaged credential that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/unmanaged_acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/unmanaged/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_credential', 'x-response-key': 'acs_credential', 'x-title': 'Get an Unmanaged Credential', 'x-undocumented': 'No unmanaged credentials are currently implemented.', }, }, '/acs/credentials/unmanaged/list': { get: { description: 'Returns a list of all unmanaged [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsUnmanagedListGet', parameters: [ { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to retrieve all credentials.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credentials: { items: { $ref: '#/components/schemas/unmanaged_acs_credential', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_credentials', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/credentials/unmanaged/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_credentials', 'x-response-key': 'acs_credentials', 'x-title': 'List Unmanaged Credentials', 'x-undocumented': 'No unmanaged credentials are currently implemented.', }, }, '/acs/credentials/update': { patch: { description: 'Updates the code and ends at date and time for a specified [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'acsCredentialsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_id: { description: 'ID of the credential that you want to update.', type: 'string', }, code: { description: 'Replacement access (PIN) code for the credential that you want to update.', pattern: '^\\d+$', type: 'string', }, ends_at: { description: 'Replacement date and time at which the validity of the credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after the `starts_at` value that you set when creating the credential.', format: 'date-time', type: 'string', }, }, required: ['acs_credential_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credential: { $ref: '#/components/schemas/acs_credential', }, ok: { type: 'boolean' }, }, required: ['acs_credential', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/credentials/update', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'credentials'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Credential', }, }, '/acs/encoders/encode_credential': { post: { description: 'Encodes an existing [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). Either provide an `acs_credential_id` or an `access_method_id`', operationId: 'acsEncodersEncodeCredentialPost', requestBody: { content: { 'application/json': { schema: { properties: { access_method_id: { description: 'ID of the `access_method` to encode onto a card.', format: 'uuid', type: 'string', }, acs_credential_id: { description: 'ID of the `acs_credential` to encode onto a card.', format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the `acs_encoder` to use to encode the `acs_credential`.', format: 'uuid', type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/acs/encoders/encode_credential', tags: ['/acs'], 'x-action-attempt-type': 'ENCODE_CREDENTIAL', 'x-fern-sdk-group-name': ['acs', 'encoders'], 'x-fern-sdk-method-name': 'encode_credential', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Encode a Credential', }, }, '/acs/encoders/get': { get: { description: 'Returns a specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', operationId: 'acsEncodersGetGet', parameters: [ { in: 'query', name: 'acs_encoder_id', required: true, schema: { description: 'ID of the encoder that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_encoder: { $ref: '#/components/schemas/acs_encoder' }, ok: { type: 'boolean' }, }, required: ['acs_encoder', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/encoders/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_encoder', 'x-response-key': 'acs_encoder', 'x-title': 'Get an Encoder', }, }, '/acs/encoders/list': { get: { description: 'Returns a list of all [encoders](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', operationId: 'acsEncodersListGet', parameters: [ { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all encoders.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_ids', schema: { description: 'IDs of the access systems for which you want to retrieve all encoders.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'acs_encoder_ids', schema: { description: 'IDs of the encoders that you want to retrieve.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Number of encoders to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_encoders: { items: { $ref: '#/components/schemas/acs_encoder' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['acs_encoders', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/acs/encoders/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_encoders', 'x-response-key': 'acs_encoders', 'x-title': 'List Encoders', }, }, '/acs/encoders/scan_credential': { post: { description: 'Scans an encoded [acs_credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners).', operationId: 'acsEncodersScanCredentialPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_encoder_id: { description: 'ID of the encoder to use for the scan.', format: 'uuid', type: 'string', }, salto_ks_metadata: { description: 'Salto KS-specific metadata for the scan action.', properties: { detect_new_tags: { default: false, description: 'When true, activates tag registration mode on the encoder to detect new, unregistered tags. When false, only detects existing tags already registered in the system. Defaults to false.', type: 'boolean', }, }, type: 'object', }, }, required: ['acs_encoder_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/encoders/scan_credential', tags: ['/acs'], 'x-action-attempt-type': 'SCAN_CREDENTIAL', 'x-fern-sdk-group-name': ['acs', 'encoders'], 'x-fern-sdk-method-name': 'scan_credential', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Scan a Credential', }, }, '/acs/encoders/scan_to_assign_credential': { post: { description: 'Scans a physical card placed on the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) and assigns the scanned credential to an ACS user. Provide either an `acs_user_id` or a `user_identity_id`.', operationId: 'acsEncodersScanToAssignCredentialPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` to use to scan the credential.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the `acs_user` to assign the scanned credential to.', format: 'uuid', type: 'string', }, salto_ks_metadata: { description: 'Salto KS-specific metadata for the scan action.', properties: { detect_new_tags: { default: false, description: 'When true, activates tag registration mode on the encoder to detect new, unregistered tags. When false, only detects existing tags already registered in the system. Defaults to false.', type: 'boolean', }, }, type: 'object', }, user_identity_id: { description: 'ID of the `user_identity` to assign the scanned credential to. If the ACS system contains an ACS user linked to this user identity, it is used. Otherwise, one is created.', format: 'uuid', type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/acs/encoders/scan_to_assign_credential', tags: ['/acs'], 'x-action-attempt-type': 'SCAN_TO_ASSIGN_CREDENTIAL', 'x-fern-sdk-group-name': ['acs', 'encoders'], 'x-fern-sdk-method-name': 'scan_to_assign_credential', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Scan to Assign a Credential', }, }, '/acs/encoders/simulate/next_credential_encode_will_fail': { post: { description: 'Simulates that the next attempt to encode a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'acsEncodersSimulateNextCredentialEncodeWillFailPost', requestBody: { content: { 'application/json': { schema: { oneOf: [ { additionalProperties: false, properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.', format: 'uuid', type: 'string', }, error_code: { default: 'no_credential_on_encoder', description: 'Code of the error to simulate.', enum: [ 'no_credential_on_encoder', 'encoding_interrupted', ], type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, { additionalProperties: false, properties: { acs_credential_id: { description: 'ID of the `acs_credential` that will fail to be encoded onto a card in the next request.', format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.', format: 'uuid', type: 'string', }, error_code: { description: 'Code of the error to simulate.', enum: ['uncategorized_error', 'action_attempt_expired'], type: 'string', }, }, required: ['acs_encoder_id', 'error_code'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/encoders/simulate/next_credential_encode_will_fail', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'], 'x-fern-sdk-method-name': 'next_credential_encode_will_fail', 'x-response-key': null, 'x-title': 'Simulate that the Next Credential Encoding Will Fail', }, }, '/acs/encoders/simulate/next_credential_encode_will_succeed': { post: { description: 'Simulates that the next attempt to encode a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'acsEncodersSimulateNextCredentialEncodeWillSucceedPost', requestBody: { content: { 'application/json': { schema: { additionalProperties: false, properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.', format: 'uuid', type: 'string', }, scenario: { default: 'credential_is_issued', description: 'Scenario to simulate.', enum: ['credential_is_issued'], type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/acs/encoders/simulate/next_credential_encode_will_succeed', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'], 'x-fern-sdk-method-name': 'next_credential_encode_will_succeed', 'x-response-key': null, 'x-title': 'Simulate that the Next Credential Encoding Will Succeed', }, }, '/acs/encoders/simulate/next_credential_scan_will_fail': { post: { description: 'Simulates that the next attempt to scan a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'acsEncodersSimulateNextCredentialScanWillFailPost', requestBody: { content: { 'application/json': { schema: { oneOf: [ { additionalProperties: false, properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.', format: 'uuid', type: 'string', }, error_code: { default: 'no_credential_on_encoder', enum: ['no_credential_on_encoder'], type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, { additionalProperties: false, properties: { acs_credential_id_on_seam: { format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.', format: 'uuid', type: 'string', }, error_code: { enum: ['uncategorized_error', 'action_attempt_expired'], type: 'string', }, }, required: ['acs_encoder_id', 'error_code'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/encoders/simulate/next_credential_scan_will_fail', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'], 'x-fern-sdk-method-name': 'next_credential_scan_will_fail', 'x-response-key': null, 'x-title': 'Simulate that the Next Credential Scan Will Fail', }, }, '/acs/encoders/simulate/next_credential_scan_will_succeed': { post: { description: 'Simulates that the next attempt to scan a [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) using the specified [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'acsEncodersSimulateNextCredentialScanWillSucceedPost', requestBody: { content: { 'application/json': { schema: { oneOf: [ { additionalProperties: false, properties: { acs_credential_id_on_seam: { description: 'ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.', format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.', format: 'uuid', type: 'string', }, scenario: { default: 'credential_exists_on_seam', description: 'Scenario to simulate.', enum: [ 'credential_exists_on_seam', 'credential_on_encoder_needs_update', ], type: 'string', }, }, required: ['acs_encoder_id'], type: 'object', }, { additionalProperties: false, properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.', format: 'uuid', type: 'string', }, scenario: { description: 'Scenario to simulate.', enum: ['credential_does_not_exist_on_seam'], type: 'string', }, }, required: ['acs_encoder_id', 'scenario'], type: 'object', }, { additionalProperties: false, properties: { acs_encoder_id: { description: 'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.', format: 'uuid', type: 'string', }, scenario: { description: 'Scenario to simulate.', enum: ['credential_on_encoder_is_empty'], type: 'string', }, }, required: ['acs_encoder_id', 'scenario'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/encoders/simulate/next_credential_scan_will_succeed', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'], 'x-fern-sdk-method-name': 'next_credential_scan_will_succeed', 'x-response-key': null, 'x-title': 'Simulate that the Next Credential Scan Will Succeed', }, }, '/acs/entrances/get': { get: { description: 'Returns a specified [access system entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', operationId: 'acsEntrancesGetGet', parameters: [ { in: 'query', name: 'acs_entrance_id', required: true, schema: { description: 'ID of the entrance that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrance: { $ref: '#/components/schemas/acs_entrance' }, ok: { type: 'boolean' }, }, required: ['acs_entrance', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { client_session: [] }, { support_read_only_token: [] }, ], summary: '/acs/entrances/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'entrances'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_entrance', 'x-response-key': 'acs_entrance', 'x-title': 'Get an Entrance', }, }, '/acs/entrances/grant_access': { post: { description: 'Grants a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) access to a specified [access system entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', operationId: 'acsEntrancesGrantAccessPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_entrance_id: { description: 'ID of the entrance to which you want to grant an access system user access.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user to whom you want to grant access to an entrance. You can only provide one of acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity to whom you want to grant access to an entrance. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the access group membership belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created.', format: 'uuid', type: 'string', }, }, required: ['acs_entrance_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/entrances/grant_access', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'entrances'], 'x-fern-sdk-method-name': 'grant_access', 'x-response-key': null, 'x-title': 'Grant an ACS User Access to an Entrance', }, }, '/acs/entrances/list': { get: { description: 'Returns a list of all [access system entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', operationId: 'acsEntrancesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list entrances.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all entrances.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_credential_id', schema: { description: 'ID of the credential for which you want to retrieve all entrances.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_method_id', schema: { description: 'ID of the access method for which you want to retrieve all entrances to which it grants access.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'location_id', schema: { deprecated: true, format: 'uuid', nullable: true, type: 'string', 'x-deprecated': 'Use `space_id`.', 'x-end-of-life': '2026-11-09', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space for which you want to list entrances.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to retrieve all entrances.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_ids', schema: { description: 'IDs of the entrances for which you want to retrieve all entrances.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 900, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['acs_entrances', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/acs/entrances/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'entrances'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_entrances', 'x-response-key': 'acs_entrances', 'x-title': 'List Entrances', }, }, '/acs/entrances/list_credentials_with_access': { get: { description: 'Returns a list of all [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) with access to a specified [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).', operationId: 'acsEntrancesListCredentialsWithAccessGet', parameters: [ { in: 'query', name: 'acs_entrance_id', required: true, schema: { description: 'ID of the entrance for which you want to list all credentials that grant access.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'include_if', required: false, schema: { description: 'Conditions that credentials must meet to be included in the returned list.', items: { enum: ['visionline_metadata.is_valid'], type: 'string' }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credentials: { items: { $ref: '#/components/schemas/acs_credential' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_credentials', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/entrances/list_credentials_with_access', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'entrances'], 'x-fern-sdk-method-name': 'list_credentials_with_access', 'x-fern-sdk-return-value': 'acs_credentials', 'x-response-key': 'acs_credentials', 'x-title': 'List Credentials with Access to an Entrance', }, }, '/acs/entrances/unlock': { post: { description: 'Remotely unlocks a specified [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) using a cloud_key credential. Returns an action attempt that tracks the progress of the unlock operation.', operationId: 'acsEntrancesUnlockPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_id: { description: 'ID of the cloud_key credential to use for the unlock operation.', format: 'uuid', type: 'string', }, acs_entrance_id: { description: 'ID of the entrance to unlock.', format: 'uuid', type: 'string', }, }, required: ['acs_entrance_id', 'acs_credential_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/entrances/unlock', tags: ['/acs'], 'x-action-attempt-type': 'UNLOCK_DOOR', 'x-fern-sdk-group-name': ['acs', 'entrances'], 'x-fern-sdk-method-name': 'unlock', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Unlock an Entrance', }, }, '/acs/systems/get': { get: { description: 'Returns a specified [access system](https://www.seam.co/docs/low-level-apis/access-systems).', operationId: 'acsSystemsGetGet', parameters: [ { in: 'query', name: 'acs_system_id', required: true, schema: { description: 'ID of the access system that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_system: { $ref: '#/components/schemas/acs_system' }, ok: { type: 'boolean' }, }, required: ['acs_system', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/systems/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'systems'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_system', 'x-response-key': 'acs_system', 'x-title': 'Get an ACS System', }, }, '/acs/systems/list': { get: { description: 'Returns a list of all [access systems](https://www.seam.co/docs/low-level-apis/access-systems).\n\nTo filter the list of returned access systems by a specific connected account ID, include the `connected_account_id` in the request body. If you omit the `connected_account_id` parameter, the response includes all access systems connected to your workspace.', operationId: 'acsSystemsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list access systems.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account by which you want to filter the list of access systems.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access systems to include all records that satisfy a partial match using `name` or `acs_system_id`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_systems', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/systems/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'systems'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_systems', 'x-response-key': 'acs_systems', 'x-title': 'List ACS Systems', }, }, '/acs/systems/list_compatible_credential_manager_acs_systems': { get: { description: 'Returns a list of all credential manager systems that are compatible with a specified [access system](https://www.seam.co/docs/low-level-apis/access-systems).\n\nSpecify the access system for which you want to retrieve all compatible credential manager systems by including the corresponding `acs_system_id` in the request body.', operationId: 'acsSystemsListCompatibleCredentialManagerAcsSystemsGet', parameters: [ { in: 'query', name: 'acs_system_id', required: true, schema: { description: 'ID of the access system for which you want to retrieve all compatible credential manager systems.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_systems', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/systems/list_compatible_credential_manager_acs_systems', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'systems'], 'x-fern-sdk-method-name': 'list_compatible_credential_manager_acs_systems', 'x-fern-sdk-return-value': 'acs_systems', 'x-response-key': 'acs_systems', 'x-title': 'List Compatible Credential Manager ACS Systems', }, }, '/acs/systems/report_devices': { post: { description: 'Reports ACS system device status including encoders and entrances.', operationId: 'acsSystemsReportDevicesPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_encoders: { default: [], description: 'Array of ACS encoders to report', items: { properties: { hotek_metadata: { description: 'Hotek-specific metadata associated with the entrance.', properties: { encoder_number: { description: 'The encoder number determined by the USB port connection.', type: 'string', }, }, required: ['encoder_number'], type: 'object', }, is_removed: { default: false, description: 'Whether the encoder is removed', type: 'boolean', }, }, required: ['hotek_metadata'], type: 'object', }, type: 'array', }, acs_entrances: { default: [], description: 'Array of ACS entrances to report', items: { properties: { hotek_metadata: { description: 'Hotek-specific metadata associated with the entrance.', properties: { common_area_name: { description: 'The common area name', type: 'string', }, common_area_number: { description: 'The room number identifier', type: 'string', }, room_number: { description: 'The room number identifier', type: 'string', }, }, type: 'object', }, is_removed: { default: false, description: 'Whether the entrance is removed', type: 'boolean', }, }, required: ['hotek_metadata'], type: 'object', }, type: 'array', }, acs_system_id: { description: 'ID of the ACS system to report resources for', format: 'uuid', type: 'string', }, }, required: ['acs_system_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/systems/report_devices', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'systems'], 'x-fern-sdk-method-name': 'report_devices', 'x-response-key': null, 'x-title': 'Report Devices', }, }, '/acs/users/add_to_access_group': { put: { description: 'Adds a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsUsersAddToAccessGroupPut', requestBody: { content: { 'application/json': { schema: { properties: { acs_access_group_id: { description: 'ID of the access group to which you want to add an access system user.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that you want to add to an access group.', format: 'uuid', type: 'string', }, }, required: ['acs_user_id', 'acs_access_group_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/add_to_access_group', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'add_to_access_group', 'x-response-key': null, 'x-title': 'Add an ACS User to an Access Group', }, }, '/acs/users/create': { post: { description: 'Creates a new [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { access_schedule: { description: "`starts_at` and `ends_at` timestamps for the new access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`.", properties: { ends_at: { description: "Ending timestamp for the new access system user's access.", format: 'date-time', nullable: true, type: 'string', }, starts_at: { description: "Starting timestamp for the new access system user's access.", format: 'date-time', type: 'string', }, }, type: 'object', }, acs_access_group_ids: { default: [], description: 'Array of access group IDs to indicate the access groups to which you want to add the new access system user.', items: { format: 'uuid', type: 'string' }, type: 'array', }, acs_system_id: { description: 'ID of the access system to which you want to add the new access system user.', format: 'uuid', type: 'string', }, email: { deprecated: true, format: 'email', type: 'string', 'x-deprecated': 'use email_address.', 'x-end-of-life': '2026-11-09', }, email_address: { description: 'Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'email', type: 'string', }, full_name: { description: 'Full name of the new access system user.', type: 'string', }, phone_number: { description: 'Phone number of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', type: 'string', }, user_identity_id: { description: 'ID of the user identity with which you want to associate the new access system user.', format: 'uuid', type: 'string', }, }, required: ['full_name', 'acs_system_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { acs_user: { $ref: '#/components/schemas/acs_user' }, ok: { type: 'boolean' }, }, required: ['acs_user', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/create', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'acs_user', 'x-response-key': 'acs_user', 'x-title': 'Create an ACS User', }, }, '/acs/users/delete': { delete: { description: "Deletes a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) and invalidates the access system user's [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).", operationId: 'acsUsersDeleteDelete', parameters: [ { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user that you want to delete. You must provide either acs_user_id or user_identity_id', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity that you want to delete. You must provide either acs_user_id or user_identity_id. If you provide user_identity_id, you must also provide acs_system_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system that you want to delete. You must provide acs_system_id with user_identity_id.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/delete', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'delete', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Delete an ACS User', }, }, '/acs/users/get': { get: { description: 'Returns a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersGetGet', parameters: [ { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user that you want to get. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity that you want to get. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system that you want to get. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_user: { $ref: '#/components/schemas/acs_user' }, ok: { type: 'boolean' }, }, required: ['acs_user', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/users/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_user', 'x-has-required-parameters': true, 'x-response-key': 'acs_user', 'x-title': 'Get an ACS User', }, }, '/acs/users/list': { get: { description: 'Returns a list of all [access system users](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersListGet', parameters: [ { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to retrieve all access system users.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_phone_number', schema: { description: 'Phone number of the user identity for which you want to retrieve all access system users, in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, `+15555550100`). Specify `null` to retrieve access system users whose user identity has no phone number.', nullable: true, type: 'string', }, }, { in: 'query', name: 'user_identity_email_address', schema: { description: 'Email address of the user identity for which you want to retrieve all access system users. Specify `null` to retrieve access system users whose user identity has no email address.', nullable: true, type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the `acs_system` for which you want to retrieve all access system users.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access system users to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `acs_user_id`, `user_identity_id`, `user_identity_full_name` or `user_identity_phone_number`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned access system users. Returns users created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_users: { items: { $ref: '#/components/schemas/acs_user' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['acs_users', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/users/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_users', 'x-response-key': 'acs_users', 'x-title': 'List ACS Users', }, }, '/acs/users/list_accessible_entrances': { get: { description: 'Lists the [entrances](https://www.seam.co/docs/api/acs/entrances/object) to which a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) has access.', operationId: 'acsUsersListAccessibleEntrancesGet', parameters: [ { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the access system user for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_entrances', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/acs/users/list_accessible_entrances', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'list_accessible_entrances', 'x-fern-sdk-return-value': 'acs_entrances', 'x-has-required-parameters': true, 'x-response-key': 'acs_entrances', 'x-title': 'List ACS User-Accessible Entrances', }, }, '/acs/users/remove_from_access_group': { delete: { description: 'Removes a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) from a specified [access group](https://www.seam.co/docs/low-level-apis/access-systems/user-management/assigning-users-to-access-groups).', operationId: 'acsUsersRemoveFromAccessGroupDelete', parameters: [ { in: 'query', name: 'acs_user_id', required: false, schema: { description: 'ID of the access system user that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', required: false, schema: { description: 'ID of the user identity that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_access_group_id', required: true, schema: { description: 'ID of the access group from which you want to remove an access system user.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/remove_from_access_group', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'remove_from_access_group', 'x-response-key': null, 'x-title': 'Remove an ACS User from an Access Group', }, }, '/acs/users/revoke_access_to_all_entrances': { post: { description: 'Revokes access to all [entrances](https://www.seam.co/docs/api/acs/entrances/object) for a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersRevokeAccessToAllEntrancesPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_system_id: { description: 'ID of the access system for which you want to revoke access. You can only provide acs_system_id with user_identity_id.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user for whom you want to revoke access. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity for whom you want to revoke access. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/users/revoke_access_to_all_entrances', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'revoke_access_to_all_entrances', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Revoke ACS User Access to All Entrances', }, }, '/acs/users/suspend': { post: { description: "[Suspends](https://www.seam.co/docs/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#suspend-an-acs-user) a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). Suspending an access system user revokes their access temporarily. To restore an access system user's access, you can [unsuspend](https://www.seam.co/docs/api/acs/users/unsuspend) them.", operationId: 'acsUsersSuspendPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_system_id: { description: 'ID of the access system that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity that you want to suspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.', format: 'uuid', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/suspend', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'suspend', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Suspend an ACS User', }, }, '/acs/users/unmanaged/get': { get: { description: 'Returns a specified unmanaged [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersUnmanagedGetGet', parameters: [ { in: 'query', name: 'acs_user_id', required: true, schema: { description: 'ID of the unmanaged access system user that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_user: { $ref: '#/components/schemas/unmanaged_acs_user', }, ok: { type: 'boolean' }, }, required: ['acs_user', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/unmanaged/get', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'acs_user', 'x-response-key': 'acs_user', 'x-title': 'Get an Unmanaged ACS User', 'x-undocumented': 'No unmanaged users are currently implemented.', }, }, '/acs/users/unmanaged/list': { get: { description: 'Returns a list of all unmanaged [access system users](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersUnmanagedListGet', parameters: [ { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to retrieve all unmanaged access system users.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_phone_number', schema: { description: 'Phone number of the user identity for which you want to retrieve all unmanaged access system users. Specify `null` to retrieve unmanaged access system users whose user identity has no phone number.', nullable: true, type: 'string', }, }, { in: 'query', name: 'user_identity_email_address', schema: { description: 'Email address of the user identity for which you want to retrieve all unmanaged access system users. Specify `null` to retrieve unmanaged access system users whose user identity has no email address.', nullable: true, type: 'string', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to retrieve all unmanaged access system users.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Number of unmanaged access system users to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned access system users to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `acs_user_id`, `user_identity_id`, `user_identity_full_name` or `user_identity_phone_number`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_users: { items: { $ref: '#/components/schemas/unmanaged_acs_user', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_users', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/acs/users/unmanaged/list', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_users', 'x-response-key': 'acs_users', 'x-title': 'List Unmanaged ACS Users', 'x-undocumented': 'No unmanaged users are currently implemented.', }, }, '/acs/users/unsuspend': { post: { description: '[Unsuspends](https://www.seam.co/docs/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users#unsuspend-an-acs-user) a specified suspended [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). While [suspending an access system user](https://www.seam.co/docs/api/acs/users/suspend) revokes their access temporarily, unsuspending the access system user restores their access.', operationId: 'acsUsersUnsuspendPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_system_id: { description: 'ID of the access system of the user that you want to unsuspend. You can only provide acs_system_id with user_identity_id.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that you want to unsuspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity that you want to unsuspend. You can only provide acs_user_id or the combination of acs_system_id and user_identity_id.', format: 'uuid', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/users/unsuspend', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'unsuspend', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Unsuspend an ACS User', }, }, '/acs/users/update': { patch: { description: 'Updates the properties of a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', operationId: 'acsUsersUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_schedule: { description: "`starts_at` and `ends_at` timestamps for the access system user's access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. If you omit `starts_at`, it defaults to the current time. `ends_at` is optional and must be a time in the future and after `starts_at`.", nullable: true, properties: { ends_at: { description: "Ending timestamp for the access system user's access.", format: 'date-time', type: 'string', }, starts_at: { description: "Starting timestamp for the access system user's access.", format: 'date-time', type: 'string', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, acs_system_id: { description: 'ID of the access system that you want to update. You can only provide acs_system_id with user_identity_id.', format: 'uuid', type: 'string', }, acs_user_id: { description: 'ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id.', format: 'uuid', type: 'string', }, email: { deprecated: true, format: 'email', type: 'string', 'x-deprecated': 'use email_address.', 'x-end-of-life': '2026-11-09', }, email_address: { description: 'Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', format: 'email', type: 'string', }, full_name: { description: 'Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).', minLength: 1, type: 'string', }, hid_acs_system_id: { description: 'ID of the HID access control system associated with the user.', format: 'uuid', type: 'string', }, phone_number: { description: 'Phone number of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).', type: 'string', }, user_identity_id: { description: 'ID of the user identity that you want to update. You can only provide acs_user_id or user_identity_id. If you provide user_identity_id, you must also provide acs_system_id.', format: 'uuid', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/acs/users/update', tags: ['/acs'], 'x-fern-sdk-group-name': ['acs', 'users'], 'x-fern-sdk-method-name': 'update', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Update an ACS User', }, }, '/action_attempts/get': { get: { description: 'Returns a specified [action attempt](https://www.seam.co/docs/core-concepts/action-attempts).', operationId: 'actionAttemptsGetGet', parameters: [ { in: 'query', name: 'action_attempt_id', required: true, schema: { description: 'ID of the action attempt that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/action_attempts/get', tags: ['/action_attempts'], 'x-fern-sdk-group-name': ['action_attempts'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Get an Action Attempt', }, }, '/action_attempts/list': { get: { description: 'Returns a list of the [action attempts](https://www.seam.co/docs/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s or by `device_id`, newest first.', operationId: 'actionAttemptsListGet', parameters: [ { in: 'query', name: 'action_attempt_ids', schema: { description: 'IDs of the action attempts that you want to retrieve.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'device_id', schema: { description: 'ID of the device to filter action attempts by.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'action_types', schema: { description: 'Types of the action attempts that you want to list, such as `LOCK_DOOR` and `UNLOCK_DOOR`.', items: { enum: [ 'LOCK_DOOR', 'UNLOCK_DOOR', 'SCAN_CREDENTIAL', 'ENCODE_CREDENTIAL', 'SCAN_TO_ASSIGN_CREDENTIAL', 'ASSIGN_CREDENTIAL', 'RESET_SANDBOX_WORKSPACE', 'SET_FAN_MODE', 'SET_HVAC_MODE', 'ACTIVATE_CLIMATE_PRESET', 'ACTIVATE_WEEKLY_PROGRAM', 'SIMULATE_KEYPAD_CODE_ENTRY', 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD', 'PUSH_THERMOSTAT_PROGRAMS', 'CONFIGURE_AUTO_LOCK', 'CONVERT_ACCESS_CODE_TO_MANAGED', 'SET_SPEAKER_VOLUME', 'SET_SPEAKER_MUTE', 'PAUSE_SPEAKER_PLAYBACK', 'RESUME_SPEAKER_PLAYBACK', 'PLAY_SPEAKER_CHIME', 'PLAY_SPEAKER_FAVORITE', 'PLAY_SPEAKER_AUDIO_CLIP', 'SET_TEMPERATURE_CONTROLLER_MODE', 'SYNC_ACCESS_CODES', 'CREATE_ACCESS_CODE', 'DELETE_ACCESS_CODE', 'UPDATE_ACCESS_CODE', 'CREATE_NOISE_THRESHOLD', 'DELETE_NOISE_THRESHOLD', 'UPDATE_NOISE_THRESHOLD', ], type: 'string', }, maxItems: 100, type: 'array', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempts: { items: { $ref: '#/components/schemas/action_attempt' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['action_attempts', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/action_attempts/list', tags: ['/action_attempts'], 'x-fern-sdk-group-name': ['action_attempts'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'action_attempts', 'x-response-key': 'action_attempts', 'x-title': 'List Action Attempts', }, }, '/bridges/get': { get: { description: 'Returns a specified [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', operationId: 'bridgesGetGet', parameters: [ { in: 'query', name: 'bridge_id', required: true, schema: { description: 'ID of the Seam Bridge that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { bridge: { description: 'Represents [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', properties: { bridge_id: { description: 'ID of Seam Bridge.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam Bridge was created.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains Seam Bridge.', format: 'uuid', type: 'string', }, }, required: ['bridge_id', 'workspace_id', 'created_at'], type: 'object', 'x-route-path': '/bridges', 'x-undocumented': 'Unreleased.', }, ok: { type: 'boolean' }, }, required: ['bridge', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/bridges/get', tags: [], 'x-fern-sdk-group-name': ['bridges'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'bridge', 'x-response-key': 'bridge', 'x-title': 'Get a Seam Bridge', 'x-undocumented': 'Not yet for customer use.', }, }, '/bridges/list': { get: { description: 'Returns a list of all [Seam Bridges](https://www.seam.co/docs/capability-guides/seam-bridge).', operationId: 'bridgesListGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { bridges: { items: { description: 'Represents [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge).', properties: { bridge_id: { description: 'ID of Seam Bridge.', format: 'uuid', type: 'string', }, created_at: { description: 'Date and time at which Seam Bridge was created.', format: 'date-time', type: 'string', }, workspace_id: { description: 'ID of the workspace that contains Seam Bridge.', format: 'uuid', type: 'string', }, }, required: ['bridge_id', 'workspace_id', 'created_at'], type: 'object', 'x-route-path': '/bridges', 'x-undocumented': 'Unreleased.', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['bridges', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/bridges/list', tags: [], 'x-fern-sdk-group-name': ['bridges'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'bridges', 'x-response-key': 'bridges', 'x-title': 'List Seam Bridges', 'x-undocumented': 'Not yet for customer use.', }, }, '/cameras/live_views/create': { post: { description: "Creates a short-lived live view session for a single camera. Pass the returned session ID and token to `/cameras/live_views/offer` to start a WebRTC stream, and to `/cameras/live_views/stop` to end the session.\n\nCamera live view is in public beta and enabled by default in production and sandbox workspaces. Use your API key on your backend to create a client session with access to the camera's connected account, then authenticate live view requests with that client session's token. To check whether a camera supports live view, use `device.can_stream_live_video`.", operationId: 'camerasLiveViewsCreatePost', requestBody: { content: { 'application/json': { schema: { additionalProperties: false, properties: { device_id: { description: 'ID of the camera to view.', format: 'uuid', type: 'string', }, duration_seconds: { default: 600, description: 'Number of seconds for which the live view session is valid, up to 600.', maximum: 600, minimum: 1, type: 'integer', }, include_audio: { default: false, description: "Indicates whether to include the camera's audio.", type: 'boolean', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { camera_live_view_session: { $ref: '#/components/schemas/camera_live_view_session', }, ok: { type: 'boolean' }, }, required: ['camera_live_view_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/cameras/live_views/create', tags: [], 'x-fern-sdk-group-name': ['cameras', 'live_views'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'camera_live_view_session', 'x-response-key': 'camera_live_view_session', 'x-title': 'Create a Camera Live View Session', }, }, '/cameras/live_views/offer': { post: { description: 'Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.\n\nCamera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.', operationId: 'camerasLiveViewsOfferPost', requestBody: { content: { 'application/json': { schema: { additionalProperties: false, properties: { camera_live_view_session_id: { description: 'ID of the camera live view session.', format: 'uuid', type: 'string', }, sdp_offer: { description: 'WebRTC SDP offer from the viewer, limited to 64 KiB of UTF-8 data.', maxLength: 65_536, minLength: 1, type: 'string', }, token: { description: 'Token returned when the camera live view session was created.', maxLength: 512, minLength: 1, type: 'string', }, }, required: ['camera_live_view_session_id', 'token', 'sdp_offer'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { camera_live_view_answer: { $ref: '#/components/schemas/camera_live_view_answer', }, ok: { type: 'boolean' }, }, required: ['camera_live_view_answer', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/cameras/live_views/offer', tags: [], 'x-fern-sdk-group-name': ['cameras', 'live_views'], 'x-fern-sdk-method-name': 'offer', 'x-fern-sdk-return-value': 'camera_live_view_answer', 'x-response-key': 'camera_live_view_answer', 'x-title': 'Negotiate a Camera Live View', }, }, '/cameras/live_views/stop': { post: { description: 'Stops a camera live view session that the current client session owns.\n\nCamera live view is in public beta and enabled by default in production and sandbox workspaces. Authenticate with the client session token used to create the live view session.', operationId: 'camerasLiveViewsStopPost', requestBody: { content: { 'application/json': { schema: { additionalProperties: false, properties: { camera_live_view_session_id: { description: 'ID of the camera live view session.', format: 'uuid', type: 'string', }, token: { description: 'Token returned when the camera live view session was created.', maxLength: 512, minLength: 1, type: 'string', }, }, required: ['camera_live_view_session_id', 'token'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/cameras/live_views/stop', tags: [], 'x-fern-sdk-group-name': ['cameras', 'live_views'], 'x-fern-sdk-method-name': 'stop', 'x-response-key': null, 'x-title': 'Stop a Camera Live View Session', }, }, '/client_sessions/create': { put: { description: 'Creates a new [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', operationId: 'clientSessionsCreatePut', requestBody: { content: { 'application/json': { schema: { properties: { connect_webview_ids: { description: 'IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) for which you want to create a client session.', items: { type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) for which you want to create a client session.', items: { type: 'string' }, type: 'array', }, customer_id: { description: 'Customer ID that you want to associate with the new client session.', type: 'string', }, customer_key: { description: 'Customer key that you want to associate with the new client session.', minLength: 1, type: 'string', }, expires_at: { description: 'Date and time at which the client session should expire, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', format: 'date-time', type: 'string', }, user_identifier_key: { description: 'Your user ID for the user for whom you want to create a client session. When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session.', minLength: 1, type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.', format: 'uuid', type: 'string', }, user_identity_ids: { deprecated: true, description: 'IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.', items: { format: 'uuid', type: 'string' }, maxItems: 1, minItems: 1, type: 'array', 'x-deprecated': 'Use `user_identity_id` instead.', 'x-end-of-life': '2026-11-09', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: ['client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { publishable_key: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/create', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'client_session', 'x-response-key': 'client_session', 'x-title': 'Create a Client Session', }, }, '/client_sessions/delete': { delete: { description: 'Deletes a [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', operationId: 'clientSessionsDeleteDelete', parameters: [ { in: 'query', name: 'client_session_id', required: true, schema: { description: 'ID of the client session that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/delete', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Client Session', }, }, '/client_sessions/get': { get: { description: 'Returns a specified [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', operationId: 'clientSessionsGetGet', parameters: [ { in: 'query', name: 'client_session_id', schema: { description: 'ID of the client session that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identifier_key', schema: { description: 'User identifier key associated with the client session that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: ['client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/client_sessions/get', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'client_session', 'x-response-key': 'client_session', 'x-title': 'Get a Client Session', }, }, '/client_sessions/get_or_create': { post: { description: 'Returns a [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) with specific characteristics or creates a new client session with these characteristics if it does not yet exist.', operationId: 'clientSessionsGetOrCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { connect_webview_ids: { description: 'IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) that you want to associate with the client session (or that are already associated with the existing client session).', items: { type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of the [connected accounts](https://www.seam.co/docs/api/connected_accounts/object) that you want to associate with the client session (or that are already associated with the existing client session).', items: { type: 'string' }, type: 'array', }, expires_at: { description: 'Date and time at which the client session should expire in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. If the client session already exists, this will update the expiration before returning it.', format: 'date-time', type: 'string', }, user_identifier_key: { description: 'Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session.', minLength: 1, type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).', format: 'uuid', type: 'string', }, user_identity_ids: { deprecated: true, description: 'IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.', items: { format: 'uuid', type: 'string' }, maxItems: 1, minItems: 1, type: 'array', 'x-deprecated': 'Use `user_identity_id`.', 'x-end-of-life': '2026-11-09', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: ['client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { publishable_key: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/get_or_create', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'get_or_create', 'x-fern-sdk-return-value': 'client_session', 'x-response-key': 'client_session', 'x-title': 'Get or Create a Client Session', }, }, '/client_sessions/grant_access': { patch: { description: 'Grants a [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) access to one or more resources, such as [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews), [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity), and so on.', operationId: 'clientSessionsGrantAccessPatch', requestBody: { content: { 'application/json': { schema: { properties: { client_session_id: { description: 'ID of the client session to which you want to grant access to resources.', type: 'string', }, connect_webview_ids: { description: 'IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) that you want to associate with the client session.', items: { type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) that you want to associate with the client session.', items: { type: 'string' }, type: 'array', }, user_identifier_key: { description: 'Your user ID for the user that you want to associate with the client session.', minLength: 1, type: 'string', }, user_identity_id: { description: 'ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.', type: 'string', }, user_identity_ids: { deprecated: true, description: 'IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.', items: { type: 'string' }, maxItems: 1, minItems: 1, type: 'array', 'x-deprecated': 'Use `user_identity_id`.', 'x-end-of-life': '2026-11-09', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: ['client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/grant_access', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'grant_access', 'x-has-required-parameters': true, 'x-response-key': null, 'x-title': 'Grant Access to a Client Session', }, }, '/client_sessions/list': { get: { description: 'Returns a list of all [client sessions](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).', operationId: 'clientSessionsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list client sessions.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'client_session_id', schema: { description: 'ID of the client session that you want to retrieve.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'user_identifier_key', schema: { description: 'Your user ID for the user by which you want to filter client sessions.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) for which you want to retrieve client sessions. Specify `null` to retrieve client sessions that are not associated with a Connect Webview.', nullable: true, type: 'string', }, }, { in: 'query', name: 'without_user_identifier_key', schema: { description: 'Indicates whether to retrieve only client sessions without associated user identifier keys.', type: 'boolean', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to retrieve client sessions. Specify `null` to retrieve client sessions that are not associated with a user identity.', nullable: true, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 50_000, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { client_sessions: { items: { $ref: '#/components/schemas/client_session' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['client_sessions', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/list', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'client_sessions', 'x-response-key': 'client_sessions', 'x-title': 'List Client Sessions', }, }, '/client_sessions/revoke': { post: { description: 'Revokes a [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens).\n\nNote that [deleting a client session](https://www.seam.co/docs/api/client_sessions/delete) is a separate action.', operationId: 'clientSessionsRevokePost', requestBody: { content: { 'application/json': { schema: { properties: { client_session_id: { description: 'ID of the client session that you want to revoke.', format: 'uuid', type: 'string', }, }, required: ['client_session_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/client_sessions/revoke', tags: ['/client_sessions'], 'x-fern-sdk-group-name': ['client_sessions'], 'x-fern-sdk-method-name': 'revoke', 'x-response-key': null, 'x-title': 'Revoke a Client Session', }, }, '/connect_webviews/create': { post: { description: 'Creates a new [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews).\n\nTo enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.\n\nYou should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.\n\nSee also: [Connect Webview Process](https://www.seam.co/docs/core-concepts/connect-webviews/connect-webview-process).', operationId: 'connectWebviewsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { accepted_capabilities: { description: 'List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.', items: { description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n', enum: [ 'lock', 'thermostat', 'noise_sensor', 'access_control', 'camera', 'speaker', 'pool', ], type: 'string', }, type: 'array', }, accepted_providers: { description: 'Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://www.seam.co/docs/api/devices/list_device_providers) with no filters.', items: { enum: [ 'hotek', 'dormakaba_community', 'legic_connect', 'akuvox', 'august', 'avigilon_alta', 'brivo', 'butterflymx', 'schlage', 'smartthings', 'yale', 'yale_access', 'yale_home', 'genie', 'doorking', 'salto', 'salto_ks', 'salto_ks_accept', 'lockly', 'ttlock', 'linear', 'noiseaware', 'nuki', 'igloo', 'kwikset', 'minut', 'my_2n', 'controlbyweb', 'nest', 'igloohome', 'ecobee', 'four_suites', 'dormakaba_oracode', 'dormakaba_oracode_iho', 'pti', 'wyze', 'seam_passport', 'visionline', 'assa_abloy_credential_service', 'tedee', 'honeywell_resideo', 'first_alert', 'latch', 'akiles', 'assa_abloy_vostio', 'assa_abloy_vostio_credential_service', 'tado', 'salto_space', 'sensi', 'sensibo', 'cielo', 'keynest', 'korelock', 'keyincode', 'dormakaba_ambiance', 'ultraloq', 'yacan', 'dusaw', 'sifely', 'thirty_three_lock', 'ring', 'tapo', 'arlo', 'reolink', 'unifi_protect', 'yale_connect', 'alertify', 'ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling', 'omnitec', 'kisi', 'aqara', 'eufy', 'sonos', 'hayward_omnilogic', 'jandy_iaqualink', 'tuya', 'hid_cm', 'google_nest', 'slack', ], type: 'string', }, type: 'array', }, automatically_manage_new_devices: { description: 'Indicates whether newly-added devices should appear as [managed devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). See also: [Customize the Behavior Settings of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).', type: 'boolean', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://www.seam.co/docs/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://www.seam.co/docs/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, custom_redirect_failure_url: { description: 'Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`.', type: 'string', }, custom_redirect_url: { description: 'URL that you want to redirect the user to after the provider login is complete.', type: 'string', }, customer_key: { description: 'Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.', minLength: 1, type: 'string', }, device_selection_mode: { enum: ['none', 'single', 'multiple'], type: 'string', 'x-undocumented': 'Not supported.', }, excluded_providers: { description: 'List of provider keys to exclude from the Connect Webview. These providers will not be shown when the user tries to connect an account.', items: { type: 'string' }, type: 'array', }, provider_category: { description: 'Specifies the category of providers that you want to include. To list all providers within a category, use [`/devices/list_device_providers`](https://www.seam.co/docs/api/devices/list_device_providers) with the desired `provider_category` filter.', enum: [ 'stable', 'consumer_smartlocks', 'beta', 'thermostats', 'noise_sensors', 'access_control_systems', 'cameras', 'connectors', 'internal_beta', ], type: 'string', }, wait_for_device_creation: { default: false, description: 'Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: [Customize the Behavior Settings of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).', type: 'boolean', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connect_webview: { $ref: '#/components/schemas/connect_webview', }, ok: { type: 'boolean' }, }, required: ['connect_webview', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/connect_webviews/create', tags: ['/connect_webviews'], 'x-fern-sdk-group-name': ['connect_webviews'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'connect_webview', 'x-response-key': 'connect_webview', 'x-title': 'Create a Connect Webview', }, }, '/connect_webviews/delete': { delete: { description: 'Deletes a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews).\n\nYou do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.', operationId: 'connectWebviewsDeleteDelete', parameters: [ { in: 'query', name: 'connect_webview_id', required: true, schema: { description: 'ID of the Connect Webview that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/connect_webviews/delete', tags: ['/connect_webviews'], 'x-fern-sdk-group-name': ['connect_webviews'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Connect Webview', }, }, '/connect_webviews/get': { get: { description: "Returns a specified [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews).\n\nUnless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.", operationId: 'connectWebviewsGetGet', parameters: [ { in: 'query', name: 'connect_webview_id', required: true, schema: { description: 'ID of the Connect Webview that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connect_webview: { $ref: '#/components/schemas/connect_webview', }, ok: { type: 'boolean' }, }, required: ['connect_webview', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/connect_webviews/get', tags: ['/connect_webviews'], 'x-fern-sdk-group-name': ['connect_webviews'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'connect_webview', 'x-response-key': 'connect_webview', 'x-title': 'Get a Connect Webview', }, }, '/connect_webviews/list': { get: { description: 'Returns a list of all [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews).', operationId: 'connectWebviewsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list connect webviews.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'user_identifier_key', schema: { description: 'Your user ID for the user by which you want to filter Connect Webviews.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'custom_metadata_has', schema: { additionalProperties: { nullable: true, oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata pairs by which you want to [filter Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.', type: 'object', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', format: 'float', type: 'number', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connect_webviews: { items: { $ref: '#/components/schemas/connect_webview' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['connect_webviews', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/connect_webviews/list', tags: ['/connect_webviews'], 'x-fern-sdk-group-name': ['connect_webviews'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'connect_webviews', 'x-response-key': 'connect_webviews', 'x-title': 'List Connect Webviews', }, }, '/connected_accounts/delete': { delete: { description: 'Deletes a specified [connected account](https://www.seam.co/docs/core-concepts/connected-accounts).\n\nDeleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.\n\nFor example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.', operationId: 'connectedAccountsDeleteDelete', parameters: [ { in: 'query', name: 'connected_account_id', required: true, schema: { description: 'ID of the connected account that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/connected_accounts/delete', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Connected Account', }, }, '/connected_accounts/get': { get: { description: 'Returns a specified [connected account](https://www.seam.co/docs/core-concepts/connected-accounts).', operationId: 'connectedAccountsGetGet', parameters: [ { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'email', schema: { description: 'Email address associated with the connected account that you want to get.', format: 'email', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connected_account: { $ref: '#/components/schemas/connected_account', }, ok: { type: 'boolean' }, }, required: ['connected_account', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/connected_accounts/get', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'connected_account', 'x-has-required-parameters': true, 'x-response-key': 'connected_account', 'x-title': 'Get a Connected Account', }, }, '/connected_accounts/list': { get: { description: 'Returns a list of all [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts).', operationId: 'connectedAccountsListGet', parameters: [ { in: 'query', name: 'user_identifier_key', schema: { description: 'Your user ID for the user by which you want to filter connected accounts.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'custom_metadata_has', schema: { additionalProperties: { nullable: true, oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.', type: 'object', }, }, { in: 'query', name: 'customer_key', schema: { description: 'Customer key by which you want to filter connected accounts.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space by which you want to filter connected accounts.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned connected accounts to include all records that satisfy a partial match using `connected_account_id`, `account_type`, `customer_key`, `custom_metadata`, `user_identifier.username`, `user_identifier.email` or `user_identifier.phone`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 11_000, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connected_accounts: { items: { $ref: '#/components/schemas/connected_account' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['connected_accounts', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/connected_accounts/list', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'connected_accounts', 'x-response-key': 'connected_accounts', 'x-title': 'List Connected Accounts', }, }, '/connected_accounts/simulate/disconnect': { post: { description: 'Simulates a connected account becoming disconnected from Seam. Only applicable for [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'connectedAccountsSimulateDisconnectPost', requestBody: { content: { 'application/json': { schema: { properties: { connected_account_id: { description: 'ID of the connected account you want to simulate as disconnected.', format: 'uuid', type: 'string', }, }, required: ['connected_account_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/connected_accounts/simulate/disconnect', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts', 'simulate'], 'x-fern-sdk-method-name': 'disconnect', 'x-response-key': null, 'x-title': 'Simulate Connected Account Disconnection', }, }, '/connected_accounts/sync': { post: { description: 'Request a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.', operationId: 'connectedAccountsSyncPost', requestBody: { content: { 'application/json': { schema: { properties: { connected_account_id: { description: 'ID of the connected account that you want to sync.', format: 'uuid', type: 'string', }, }, required: ['connected_account_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/connected_accounts/sync', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts'], 'x-fern-sdk-method-name': 'sync', 'x-response-key': null, 'x-title': 'Sync a Connected Account', }, }, '/connected_accounts/update': { patch: { description: 'Updates a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts).', operationId: 'connectedAccountsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { accepted_capabilities: { description: 'List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.', items: { description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n', enum: [ 'lock', 'thermostat', 'noise_sensor', 'access_control', 'camera', 'speaker', 'pool', ], type: 'string', }, type: 'array', }, automatically_manage_new_devices: { description: 'Indicates whether newly-added devices should appear as [managed devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).', type: 'boolean', }, connected_account_id: { description: 'ID of the connected account that you want to update.', format: 'uuid', type: 'string', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a connected account](https://www.seam.co/docs/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://www.seam.co/docs/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, customer_key: { description: 'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.', minLength: 1, type: 'string', }, display_name: { description: 'Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`.', maxLength: 255, minLength: 1, type: 'string', }, }, required: ['connected_account_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connected_account: { $ref: '#/components/schemas/connected_account', }, ok: { type: 'boolean' }, }, required: ['connected_account', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/connected_accounts/update', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': ['connected_accounts'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Connected Account', }, }, '/customers/create_portal': { post: { description: 'Creates a new customer portal magic link with configurable features.', operationId: 'customersCreatePortalPost', requestBody: { content: { 'application/json': { schema: { allOf: [ { properties: { _dev: { default: false, description: 'Whether the portal is in developer mode. Only available for Seam employees.', type: 'boolean', 'x-undocumented': 'Internal developer mode flag.', }, customer_resources_filters: { description: 'Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.', items: { properties: { field: { description: 'The custom_metadata field name to filter on.', pattern: '^[a-zA-Z_]\\w*$', type: 'string', }, operation: { description: "The comparison operation. Currently only '=' is supported.", enum: ['='], type: 'string', }, value: { description: 'The value to compare against.', oneOf: [{ type: 'string' }, { type: 'boolean' }], }, }, required: ['field', 'operation', 'value'], type: 'object', }, type: 'array', }, customization_profile_id: { description: 'The ID of the customization profile to use for the portal.', format: 'uuid', type: 'string', }, deep_link: { description: 'Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.', discriminator: { propertyName: 'resource_type' }, oneOf: [ { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['reservation'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['space'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['device'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['acs_entrance'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, ], 'x-undocumented': 'Internal endpoint for customer portals.', }, exclude_locale_picker: { default: false, description: 'Whether to exclude the option to select a locale within the portal UI.', type: 'boolean', }, features: { description: "Features to include in the portal. Settings you omit use the portal's customization profile, then the Seam default. Settings you pass take precedence over the customization profile's, so changing the profile doesn't change them.", properties: { configure: { description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, is_embedded: { default: false, description: 'Whether the portal is embedded in another application.', type: 'boolean', }, landing_page: { description: 'Configuration for the landing page when the portal loads.', properties: { manage: { oneOf: [ { oneOf: [ { properties: { space_key: { type: 'string' }, }, required: ['space_key'], type: 'object', }, { properties: { property_key: { type: 'string' }, }, required: ['property_key'], type: 'object', }, { properties: { room_key: { type: 'string' }, }, required: ['room_key'], type: 'object', }, { properties: { common_area_key: { type: 'string' }, }, required: ['common_area_key'], type: 'object', }, { properties: { unit_key: { type: 'string' }, }, required: ['unit_key'], type: 'object', }, { properties: { facility_key: { type: 'string' }, }, required: ['facility_key'], type: 'object', }, { properties: { building_key: { type: 'string' }, }, required: ['building_key'], type: 'object', }, { properties: { listing_key: { type: 'string' }, }, required: ['listing_key'], type: 'object', }, { properties: { property_listing_key: { type: 'string' }, }, required: ['property_listing_key'], type: 'object', }, { properties: { site_key: { type: 'string' }, }, required: ['site_key'], type: 'object', }, ], }, { oneOf: [ { properties: { reservation_key: { type: 'string' }, }, required: ['reservation_key'], type: 'object', }, { properties: { booking_key: { type: 'string' }, }, required: ['booking_key'], type: 'object', }, { properties: { access_grant_key: { type: 'string' }, }, required: ['access_grant_key'], type: 'object', }, ], }, ], }, }, type: 'object', }, locale: { description: 'The locale to use for the portal.', enum: [ 'en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES', 'de-DE', 'nl-NL', 'el-GR', 'pl-PL', 'ru-RU', ], type: 'string', }, navigation_mode: { default: 'full', description: "Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.", enum: ['full', 'restricted'], type: 'string', }, read_only: { default: false, description: "Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.", type: 'boolean', }, }, type: 'object', }, { properties: { customer_data: { properties: { access_grants: { description: 'List of access grants.', items: { properties: { access_grant_key: { description: 'Your unique identifier for the access grant.', minLength: 1, type: 'string', }, building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['access_grant_key'], type: 'object', }, type: 'array', }, bookings: { description: 'List of bookings.', items: { properties: { booking_key: { description: 'Your unique identifier for the booking.', minLength: 1, type: 'string', }, building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['booking_key'], type: 'object', }, type: 'array', }, buildings: { description: 'List of buildings.', items: { properties: { building_key: { description: 'Your unique identifier for the building.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'building_key'], type: 'object', }, type: 'array', }, common_areas: { description: 'List of shared common areas.', items: { properties: { common_area_key: { description: 'Your unique identifier for the common area.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, }, required: ['name', 'common_area_key'], type: 'object', }, type: 'array', }, customer_key: { description: 'Your unique identifier for the customer.', minLength: 1, type: 'string', }, customization_profile_id: { description: "ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.", format: 'uuid', nullable: true, type: 'string', }, facilities: { description: 'List of gym or fitness facilities.', items: { properties: { facility_key: { description: 'Your unique identifier for the facility.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'facility_key'], type: 'object', }, type: 'array', }, guests: { description: 'List of guests.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, guest_key: { description: 'Your unique identifier for the guest.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, }, required: ['name', 'guest_key'], type: 'object', }, type: 'array', }, listings: { description: 'List of property listings.', items: { properties: { listing_key: { description: 'Your unique identifier for the listing.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'listing_key'], type: 'object', }, type: 'array', }, low_battery_alert_threshold: { description: "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.", format: 'float', maximum: 1, minimum: 0, nullable: true, type: 'number', }, properties: { description: 'List of short-term rental properties.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, property_key: { description: 'Your unique identifier for the property.', minLength: 1, type: 'string', }, }, required: ['name', 'property_key'], type: 'object', }, type: 'array', }, property_listings: { description: 'List of property listings.', items: { properties: { custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Set key:value pairs. Accepts string or Boolean values. Adding custom metadata to a property listing enables you to store custom information, like customer details or internal IDs from your application. Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, property_listing_key: { description: 'Your unique identifier for the property listing.', minLength: 1, type: 'string', }, }, required: ['name', 'property_listing_key'], type: 'object', }, type: 'array', }, reservations: { description: 'List of reservations.', items: { properties: { building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Set key:value pairs for filtering reservations by custom criteria. Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, reservation_key: { description: 'Your unique identifier for the reservation.', minLength: 1, type: 'string', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, sub_reservations: { description: "Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged.", items: { properties: { building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: "Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata.", type: 'object', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, is_primary: { description: "Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.", type: 'boolean', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, sub_reservation_key: { description: 'Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation.', minLength: 1, type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['sub_reservation_key'], type: 'object', }, type: 'array', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['reservation_key'], type: 'object', }, type: 'array', }, residents: { description: 'List of residents.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, resident_key: { description: 'Your unique identifier for the resident.', minLength: 1, type: 'string', }, }, required: ['name', 'resident_key'], type: 'object', }, type: 'array', }, rooms: { description: 'List of hotel or hospitality rooms.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, room_key: { description: 'Your unique identifier for the room.', minLength: 1, type: 'string', }, }, required: ['name', 'room_key'], type: 'object', }, type: 'array', }, sites: { description: 'List of general sites or areas.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, }, required: ['name', 'site_key'], type: 'object', }, type: 'array', }, spaces: { description: 'List of general spaces or areas.', items: { properties: { customer_data: { description: 'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, duration_minutes: { description: 'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, geolocation: { description: 'Geographic coordinates (latitude and longitude) of the space.', properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, space_key: { description: 'Your unique identifier for the space.', minLength: 1, type: 'string', }, }, required: ['name', 'space_key'], type: 'object', }, type: 'array', }, staff_members: { description: 'List of staff members.', items: { description: 'Represents a staff member for a specific customer.', properties: { building_keys: { description: 'List of unique identifiers for the buildings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'List of unique identifiers for the common areas the staff member is associated with.', items: { type: 'string' }, type: 'array', }, email_address: { description: 'Email address associated with the user identity.', type: 'string', }, facility_keys: { description: 'List of unique identifiers for the facilities the staff member is associated with.', items: { type: 'string' }, type: 'array', }, listing_keys: { description: 'List of unique identifiers for the listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, property_keys: { description: 'List of unique identifiers for the properties the staff member is associated with.', items: { type: 'string' }, type: 'array', }, property_listing_keys: { description: 'List of unique identifiers for the property listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, room_keys: { description: 'List of unique identifiers for the rooms the staff member is associated with.', items: { type: 'string' }, type: 'array', }, site_keys: { description: 'List of unique identifiers for the sites the staff member is associated with.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'List of unique identifiers for the spaces the staff member is associated with.', items: { type: 'string' }, type: 'array', }, staff_member_key: { description: 'Your unique identifier for the staff.', type: 'string', }, unit_keys: { description: 'List of unique identifiers for the units the staff member is associated with.', items: { type: 'string' }, type: 'array', }, }, required: ['name', 'staff_member_key'], type: 'object', 'x-route-path': '/seam/customer/v1/staff_members', 'x-undocumented': 'Internal resource for customer portals.', }, type: 'array', }, tenants: { description: 'List of tenants.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, tenant_key: { description: 'Your unique identifier for the tenant.', minLength: 1, type: 'string', }, }, required: ['name', 'tenant_key'], type: 'object', }, type: 'array', }, units: { description: 'List of multi-family residential units.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, unit_key: { description: 'Your unique identifier for the unit.', minLength: 1, type: 'string', }, }, required: ['name', 'unit_key'], type: 'object', }, type: 'array', }, user_identities: { description: 'List of user identities.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, user_identity_key: { description: 'Your unique identifier for the user identity.', minLength: 1, type: 'string', }, }, required: ['name', 'user_identity_key'], type: 'object', }, type: 'array', }, users: { description: 'List of users.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, user_key: { description: 'Your unique identifier for the user.', minLength: 1, type: 'string', }, }, required: ['name', 'user_key'], type: 'object', }, type: 'array', }, }, required: ['customer_key'], type: 'object', }, }, type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { customer_portal: { $ref: '#/components/schemas/customer_portal', }, magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['customer_portal', 'magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/customers/create_portal', tags: [], 'x-fern-sdk-group-name': ['customers'], 'x-fern-sdk-method-name': 'create_portal', 'x-fern-sdk-return-value': 'customer_portal', 'x-response-key': 'customer_portal', 'x-title': 'Create Customer Portal', }, }, '/customers/delete_data': { delete: { description: 'Deletes customer data including resources like spaces, properties, rooms, users, etc.\nThis will delete the partner resources and any related Seam resources (user identities, access grants, spaces).\nSpace keys also match spaces created directly with a `space_key` (for example, through `/spaces/create`).', operationId: 'customersDeleteDataDelete', parameters: [ { in: 'query', name: 'customer_keys', schema: { description: 'List of customer keys to delete all data for.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'space_keys', schema: { description: 'List of space keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'property_keys', schema: { description: 'List of property keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'room_keys', schema: { description: 'List of room keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'common_area_keys', schema: { description: 'List of common area keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'unit_keys', schema: { description: 'List of unit keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'facility_keys', schema: { description: 'List of facility keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'building_keys', schema: { description: 'List of building keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'listing_keys', schema: { description: 'List of listing keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'property_listing_keys', schema: { description: 'List of property listing keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'guest_keys', schema: { description: 'List of guest keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'tenant_keys', schema: { description: 'List of tenant keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'resident_keys', schema: { description: 'List of resident keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'user_keys', schema: { description: 'List of user keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'user_identity_keys', schema: { description: 'List of user identity keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'reservation_keys', schema: { description: 'List of reservation keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'booking_keys', schema: { description: 'List of booking keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'access_grant_keys', schema: { description: 'List of access grant keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'staff_member_keys', schema: { description: 'List of staff member keys to delete.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/customers/delete_data', tags: [], 'x-fern-sdk-group-name': ['customers'], 'x-fern-sdk-method-name': 'delete_data', 'x-response-key': null, 'x-title': 'Delete Customer Data', }, }, '/customers/push_data': { post: { description: 'Pushes customer data including resources like spaces, properties, rooms, users, etc.', operationId: 'customersPushDataPost', requestBody: { content: { 'application/json': { schema: { properties: { access_grants: { description: 'List of access grants.', items: { properties: { access_grant_key: { description: 'Your unique identifier for the access grant.', minLength: 1, type: 'string', }, building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['access_grant_key'], type: 'object', }, type: 'array', }, bookings: { description: 'List of bookings.', items: { properties: { booking_key: { description: 'Your unique identifier for the booking.', minLength: 1, type: 'string', }, building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['booking_key'], type: 'object', }, type: 'array', }, buildings: { description: 'List of buildings.', items: { properties: { building_key: { description: 'Your unique identifier for the building.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'building_key'], type: 'object', }, type: 'array', }, common_areas: { description: 'List of shared common areas.', items: { properties: { common_area_key: { description: 'Your unique identifier for the common area.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, }, required: ['name', 'common_area_key'], type: 'object', }, type: 'array', }, customer_key: { description: 'Your unique identifier for the customer.', minLength: 1, type: 'string', }, customization_profile_id: { description: "ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.", format: 'uuid', nullable: true, type: 'string', }, facilities: { description: 'List of gym or fitness facilities.', items: { properties: { facility_key: { description: 'Your unique identifier for the facility.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'facility_key'], type: 'object', }, type: 'array', }, guests: { description: 'List of guests.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, guest_key: { description: 'Your unique identifier for the guest.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, }, required: ['name', 'guest_key'], type: 'object', }, type: 'array', }, listings: { description: 'List of property listings.', items: { properties: { listing_key: { description: 'Your unique identifier for the listing.', minLength: 1, type: 'string', }, name: { description: 'Your display name for this location resource.', type: 'string', }, }, required: ['name', 'listing_key'], type: 'object', }, type: 'array', }, low_battery_alert_threshold: { description: "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Overrides the workspace and device defaults. Pass `null` to remove the customer's override.", format: 'float', maximum: 1, minimum: 0, nullable: true, type: 'number', }, properties: { description: 'List of short-term rental properties.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, property_key: { description: 'Your unique identifier for the property.', minLength: 1, type: 'string', }, }, required: ['name', 'property_key'], type: 'object', }, type: 'array', }, property_listings: { description: 'List of property listings.', items: { properties: { custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Set key:value pairs. Accepts string or Boolean values. Adding custom metadata to a property listing enables you to store custom information, like customer details or internal IDs from your application. Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, property_listing_key: { description: 'Your unique identifier for the property listing.', minLength: 1, type: 'string', }, }, required: ['name', 'property_listing_key'], type: 'object', }, type: 'array', }, reservations: { description: 'List of reservations.', items: { properties: { building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Set key:value pairs for filtering reservations by custom criteria. Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, reservation_key: { description: 'Your unique identifier for the reservation.', minLength: 1, type: 'string', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, sub_reservations: { description: "Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged.", items: { properties: { building_keys: { description: 'Building keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'Common area keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: "Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata.", type: 'object', }, ends_at: { description: 'Ending date and time for the access grant.', format: 'date-time', type: 'string', }, facility_keys: { description: 'Facility keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, guest_key: { description: 'Guest key associated with the access grant.', type: 'string', }, is_primary: { description: "Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.", type: 'boolean', }, listing_keys: { description: 'Listing keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your name for this access grant resource.', type: 'string', }, preferred_code: { description: 'Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code.', nullable: true, type: 'string', }, property_keys: { description: 'Property keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, resident_key: { description: 'Resident key associated with the access grant.', type: 'string', }, room_keys: { description: 'Room keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'Space keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, starts_at: { description: 'Starting date and time for the access grant.', format: 'date-time', type: 'string', }, sub_reservation_key: { description: 'Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation.', minLength: 1, type: 'string', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['sub_reservation_key'], type: 'object', }, type: 'array', }, tenant_key: { description: 'Tenant key associated with the access grant.', type: 'string', }, unit_keys: { description: 'Unit keys associated with the access grant.', items: { type: 'string' }, type: 'array', }, user_identity_key: { description: 'User identity key associated with the access grant.', type: 'string', }, user_key: { description: 'User key associated with the access grant.', type: 'string', }, }, required: ['reservation_key'], type: 'object', }, type: 'array', }, residents: { description: 'List of residents.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, resident_key: { description: 'Your unique identifier for the resident.', minLength: 1, type: 'string', }, }, required: ['name', 'resident_key'], type: 'object', }, type: 'array', }, rooms: { description: 'List of hotel or hospitality rooms.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, room_key: { description: 'Your unique identifier for the room.', minLength: 1, type: 'string', }, }, required: ['name', 'room_key'], type: 'object', }, type: 'array', }, sites: { description: 'List of general sites or areas.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, }, required: ['name', 'site_key'], type: 'object', }, type: 'array', }, spaces: { description: 'List of general spaces or areas.', items: { properties: { customer_data: { description: 'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, duration_minutes: { description: 'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, geolocation: { description: 'Geographic coordinates (latitude and longitude) of the space.', properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, space_key: { description: 'Your unique identifier for the space.', minLength: 1, type: 'string', }, }, required: ['name', 'space_key'], type: 'object', }, type: 'array', }, staff_members: { description: 'List of staff members.', items: { description: 'Represents a staff member for a specific customer.', properties: { building_keys: { description: 'List of unique identifiers for the buildings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, common_area_keys: { description: 'List of unique identifiers for the common areas the staff member is associated with.', items: { type: 'string' }, type: 'array', }, email_address: { description: 'Email address associated with the user identity.', type: 'string', }, facility_keys: { description: 'List of unique identifiers for the facilities the staff member is associated with.', items: { type: 'string' }, type: 'array', }, listing_keys: { description: 'List of unique identifiers for the listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, property_keys: { description: 'List of unique identifiers for the properties the staff member is associated with.', items: { type: 'string' }, type: 'array', }, property_listing_keys: { description: 'List of unique identifiers for the property listings the staff member is associated with.', items: { type: 'string' }, type: 'array', }, room_keys: { description: 'List of unique identifiers for the rooms the staff member is associated with.', items: { type: 'string' }, type: 'array', }, site_keys: { description: 'List of unique identifiers for the sites the staff member is associated with.', items: { type: 'string' }, type: 'array', }, space_keys: { description: 'List of unique identifiers for the spaces the staff member is associated with.', items: { type: 'string' }, type: 'array', }, staff_member_key: { description: 'Your unique identifier for the staff.', type: 'string', }, unit_keys: { description: 'List of unique identifiers for the units the staff member is associated with.', items: { type: 'string' }, type: 'array', }, }, required: ['name', 'staff_member_key'], type: 'object', 'x-route-path': '/seam/customer/v1/staff_members', 'x-undocumented': 'Internal resource for customer portals.', }, type: 'array', }, tenants: { description: 'List of tenants.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, tenant_key: { description: 'Your unique identifier for the tenant.', minLength: 1, type: 'string', }, }, required: ['name', 'tenant_key'], type: 'object', }, type: 'array', }, units: { description: 'List of multi-family residential units.', items: { properties: { name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, unit_key: { description: 'Your unique identifier for the unit.', minLength: 1, type: 'string', }, }, required: ['name', 'unit_key'], type: 'object', }, type: 'array', }, user_identities: { description: 'List of user identities.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, user_identity_key: { description: 'Your unique identifier for the user identity.', minLength: 1, type: 'string', }, }, required: ['name', 'user_identity_key'], type: 'object', }, type: 'array', }, users: { description: 'List of users.', items: { properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, user_key: { description: 'Your unique identifier for the user.', minLength: 1, type: 'string', }, }, required: ['name', 'user_key'], type: 'object', }, type: 'array', }, }, required: ['customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/customers/push_data', tags: [], 'x-fern-sdk-group-name': ['customers'], 'x-fern-sdk-method-name': 'push_data', 'x-response-key': null, 'x-title': 'Push Customer Data', }, }, '/customers/reservations/create_deep_link': { post: { description: 'Creates a deep link URL for a specific reservation that can be embedded in an iframe.\nThe deep link creates a restricted customer portal that navigates directly to the reservation page,\nhiding the navigation UI to prevent context switching.\n\nThis is intended for PMS integrations (like RMS Cloud) to embed reservation management\nin their own portal without exposing the full customer portal.\n\nThe deep link expires after 7 days.', operationId: 'customersReservationsCreateDeepLinkPost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'The customer_key identifying the customer who owns the reservation.', minLength: 1, type: 'string', }, reservation_key: { description: 'The key of the reservation to create a deep link for.', minLength: 1, type: 'string', }, }, required: ['customer_key', 'reservation_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { deep_link: { properties: { customer_portal_id: { description: 'The ID of the created customer portal.', format: 'uuid', type: 'string', }, expires_at: { description: 'When the deep link expires.', format: 'date-time', type: 'string', }, url: { description: 'The deep link URL to embed in an iframe.', format: 'uri', type: 'string', }, }, required: ['url', 'expires_at', 'customer_portal_id'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['deep_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/customers/reservations/create_deep_link', tags: [], 'x-fern-sdk-group-name': ['customers', 'reservations'], 'x-fern-sdk-method-name': 'create_deep_link', 'x-fern-sdk-return-value': 'deep_link', 'x-response-key': 'deep_link', 'x-title': 'Create Reservation Deep Link', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/devices/delete': { delete: { description: 'Unmanages a specified [device](https://www.seam.co/docs/core-concepts/devices), the same as [`/devices/update`](https://www.seam.co/docs/api/devices/update) with `is_managed: false`. The device is no longer billed and stops appearing in `/devices/list`, but keeps syncing and can be managed again with [`/devices/unmanaged/update`](https://www.seam.co/docs/api/devices/unmanaged/update).', operationId: 'devicesDeleteDelete', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the device that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/devices/delete', tags: ['/devices'], 'x-deprecated': 'Deleting a device is no longer supported. Use `/devices/update` with `is_managed: false` to unmanage the device instead.', 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Device', 'x-undocumented': 'Deleting a device is no longer supported. Unmanage the device instead.', }, }, '/devices/get': { get: { description: 'Returns a specified [device](https://www.seam.co/docs/core-concepts/devices).\n\nYou must specify either `device_id` or `name`.', operationId: 'devicesGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the device that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'name', schema: { description: 'Name of the device that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { device: { $ref: '#/components/schemas/device' }, ok: { type: 'boolean' }, }, required: ['device', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/devices/get', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'device', 'x-has-required-parameters': true, 'x-response-key': 'device', 'x-title': 'Get a Device', }, }, '/devices/list': { get: { description: 'Returns a list of all [devices](https://www.seam.co/docs/core-concepts/devices).', operationId: 'devicesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connected_account_ids', schema: { description: 'Array of IDs of the connected accounts for which you want to list devices.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type for which you want to list devices.', oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, }, { in: 'query', name: 'device_types', schema: { description: 'Array of device types for which you want to list devices.', items: { oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, type: 'array', }, }, { in: 'query', name: 'manufacturer', schema: { description: 'Manufacturer for which you want to list devices.', enum: [ 'akuvox', 'august', 'avigilon_alta', 'brivo', 'butterflymx', 'doorking', 'four_suites', 'genie', 'igloo', 'keywe', 'kwikset', 'linear', 'nuki', 'philia', 'salto', 'samsung', 'schlage', 'seam', 'unknown', 'wyze', 'yale', 'two_n', 'ttlock', 'igloohome', 'controlbyweb', 'tedee', 'keyincode', 'ubiquiti', 'akiles', 'aqara', 'ecobee', 'eufy', 'dormakaba_oracode', 'dormakaba_oracode_iho', 'honeywell_resideo', 'keynest', 'korelock', 'lockly', 'minut', 'cielo', 'nest', 'noiseaware', 'sensi', 'sensibo', 'smartthings', 'tado', 'ultraloq', 'ring', 'tapo', 'arlo', 'reolink', 'unifi_protect', 'yale_connect', 'alertify', 'ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling', 'omnitec', 'kisi', 'slack', 'yacan', 'sonos', 'hayward_omnilogic', 'jandy_iaqualink', 'tuya', ], type: 'string', }, }, { in: 'query', name: 'device_ids', schema: { description: 'Array of device IDs for which you want to list devices.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Numerical limit on the number of devices to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned devices. Returns devices created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'user_identifier_key', schema: { description: 'Your own internal user ID for the user for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'custom_metadata_has', schema: { additionalProperties: { nullable: true, oneOf: [{ type: 'string' }, { type: 'boolean' }], }, description: 'Set of key:value [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. Key names cannot contain a period (.). Specify `null` to match a key that is unset. A key given an empty string is omitted from the filter.', type: 'object', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, { in: 'query', name: 'include_if', schema: { items: { enum: [ 'can_remotely_unlock', 'can_remotely_lock', 'can_program_offline_access_codes', 'can_program_online_access_codes', 'can_hvac_heat', 'can_hvac_cool', 'can_hvac_heat_cool', 'can_turn_off_hvac', 'can_activate_weekly_program', 'can_simulate_removal', 'can_simulate_connection', 'can_simulate_disconnection', 'can_unlock_with_code', 'can_run_thermostat_programs', 'can_program_thermostat_programs_as_weekday_weekend', 'can_program_thermostat_programs_as_different_each_day', 'can_program_thermostat_programs_as_same_each_day', 'can_simulate_hub_connection', 'can_simulate_hub_disconnection', 'can_simulate_paid_subscription', 'can_configure_auto_lock', 'can_stream_live_video', 'can_set_speaker_volume', 'can_mute_speaker', 'can_unmute_speaker', 'can_pause_speaker_playback', 'can_resume_speaker_playback', 'can_play_speaker_chime', 'can_play_speaker_favorite', 'can_play_speaker_audio_clip', 'can_control_temperature', ], type: 'string', }, type: 'array', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'exclude_if', schema: { items: { enum: [ 'can_remotely_unlock', 'can_remotely_lock', 'can_program_offline_access_codes', 'can_program_online_access_codes', 'can_hvac_heat', 'can_hvac_cool', 'can_hvac_heat_cool', 'can_turn_off_hvac', 'can_activate_weekly_program', 'can_simulate_removal', 'can_simulate_connection', 'can_simulate_disconnection', 'can_unlock_with_code', 'can_run_thermostat_programs', 'can_program_thermostat_programs_as_weekday_weekend', 'can_program_thermostat_programs_as_different_each_day', 'can_program_thermostat_programs_as_same_each_day', 'can_simulate_hub_connection', 'can_simulate_hub_disconnection', 'can_simulate_paid_subscription', 'can_configure_auto_lock', 'can_stream_live_video', 'can_set_speaker_volume', 'can_mute_speaker', 'can_unmute_speaker', 'can_pause_speaker_playback', 'can_resume_speaker_playback', 'can_play_speaker_chime', 'can_play_speaker_favorite', 'can_play_speaker_audio_clip', 'can_control_temperature', ], type: 'string', }, type: 'array', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'unstable_location_id', schema: { deprecated: true, format: 'uuid', nullable: true, type: 'string', 'x-deprecated': 'Use `space_id`.', 'x-end-of-life': '2026-11-09', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'parent_device_id', schema: { description: 'ID of the parent device whose child devices you want to list. Specify `null` to list devices that have no parent device.', format: 'uuid', nullable: true, type: 'string', 'x-undocumented': 'Unreleased.', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['devices', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/devices/list', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Devices', }, }, '/devices/list_device_providers': { get: { description: 'Returns a list of all device providers.\n\nThe information that this endpoint returns for each provider includes a set of [capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities#capability-flags), such as `device_provider.can_remotely_unlock`. If at least one supported device from a provider has a specific capability, the corresponding capability flag is `true`.\n\nWhen you create a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews), you can customize the providers—that is, the brands—that it displays. In the `/connect_webviews/create` request, include the desired set of device provider keys in the `accepted_providers` parameter. See also [Customize the Brands to Display in Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).', operationId: 'devicesListDeviceProvidersGet', parameters: [ { in: 'query', name: 'provider_category', schema: { description: 'Category for which you want to list providers.', enum: [ 'stable', 'consumer_smartlocks', 'beta', 'thermostats', 'noise_sensors', 'access_control_systems', 'cameras', 'connectors', ], type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { device_providers: { items: { $ref: '#/components/schemas/device_provider' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['device_providers', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/devices/list_device_providers', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'list_device_providers', 'x-fern-sdk-return-value': 'device_providers', 'x-response-key': 'device_providers', 'x-title': 'List Device Providers', }, }, '/devices/report_provider_metadata': { post: { description: 'Updates provider-specific metadata for devices.', operationId: 'devicesReportProviderMetadataPost', requestBody: { content: { 'application/json': { schema: { properties: { devices: { description: 'Array of devices with provider metadata to update', items: { properties: { device_id: { description: 'ID of the device to update', format: 'uuid', type: 'string', }, omnitec_metadata: { description: 'Omnitec-specific metadata to update', properties: { time_zone: { description: 'IANA timezone for the Omnitec device', enum: [ 'Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/La_Rioja', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Ciudad_Juarez', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Fort_Nelson', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Monticello', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Colombo', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Hebron', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Katmandu', 'Asia/Khandyga', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qostanay', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', ], type: 'string', }, }, required: ['time_zone'], type: 'object', }, schlage_metadata: { description: 'Schlage-specific metadata to update', properties: { time_zone: { description: 'IANA timezone for the Schlage device', enum: [ 'Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/La_Rioja', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Ciudad_Juarez', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Fort_Nelson', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Monticello', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Colombo', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Hebron', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Katmandu', 'Asia/Khandyga', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qostanay', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', ], type: 'string', }, }, required: ['time_zone'], type: 'object', }, ultraloq_metadata: { description: 'Ultraloq-specific metadata to update', properties: { time_zone: { description: 'IANA timezone for the Ultraloq device', enum: [ 'Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/La_Rioja', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Ciudad_Juarez', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Fort_Nelson', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Monticello', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Colombo', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Hebron', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Katmandu', 'Asia/Khandyga', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qostanay', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', ], type: 'string', }, }, required: ['time_zone'], type: 'object', }, }, required: ['device_id'], type: 'object', }, minItems: 1, type: 'array', }, }, required: ['devices'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/devices/report_provider_metadata', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'report_provider_metadata', 'x-response-key': null, 'x-title': 'Report Provider Metadata', }, }, '/devices/simulate/connect': { post: { description: 'Simulates connecting a device to Seam. Only applicable for [sandbox devices](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://www.seam.co/docs/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).', operationId: 'devicesSimulateConnectPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device that you want to simulate connecting to Seam.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/connect', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'connect', 'x-response-key': null, 'x-title': 'Simulate Device Connection', }, }, '/devices/simulate/connect_to_hub': { post: { description: 'Simulates bringing the Wi‑Fi hub (bridge) back online for a device.\nOnly applicable for sandbox workspaces and currently\nimplemented for August and TTLock locks.\nThis will clear the `hub_disconnected` error on the device.', operationId: 'devicesSimulateConnectToHubPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device whose hub you want to reconnect.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/connect_to_hub', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'connect_to_hub', 'x-response-key': null, 'x-title': 'Simulate Hub Connection', }, }, '/devices/simulate/disconnect': { post: { description: 'Simulates disconnecting a device from Seam. Only applicable for [sandbox devices](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://www.seam.co/docs/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).', operationId: 'devicesSimulateDisconnectPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device that you want to simulate disconnecting from Seam.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/disconnect', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'disconnect', 'x-response-key': null, 'x-title': 'Simulate Device Disconnection', }, }, '/devices/simulate/disconnect_from_hub': { post: { description: 'Simulates taking the Wi‑Fi hub (bridge) offline for a device.\nOnly applicable for sandbox workspaces and currently\nimplemented for August, TTLock, and IglooHome devices.\nThis will set the `hub_disconnected` error on the device, or mark the\nIglooHome bridge offline in sandbox.', operationId: 'devicesSimulateDisconnectFromHubPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device whose hub you want to disconnect.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/disconnect_from_hub', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'disconnect_from_hub', 'x-response-key': null, 'x-title': 'Simulate Hub Disconnection', }, }, '/devices/simulate/paid_subscription': { post: { description: 'Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).\nSend `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.\nThe actual device error is created/cleared by the poller after this state change.', operationId: 'devicesSimulatePaidSubscriptionPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { format: 'uuid', type: 'string' }, is_expired: { type: 'boolean' }, }, required: ['device_id', 'is_expired'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/paid_subscription', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'paid_subscription', 'x-response-key': null, 'x-title': 'Simulate Paid Subscription', }, }, '/devices/simulate/remove': { post: { description: 'Simulates removing a device from Seam. Only applicable for [sandbox devices](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://www.seam.co/docs/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).', operationId: 'devicesSimulateRemovePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device that you want to simulate removing from Seam.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/simulate/remove', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'simulate'], 'x-fern-sdk-method-name': 'remove', 'x-response-key': null, 'x-title': 'Simulate Device Removal', }, }, '/devices/unmanaged/get': { get: { description: 'Returns a specified [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).\n\nAn unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).\n\nYou must specify either `device_id` or `name`.', operationId: 'devicesUnmanagedGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the unmanaged device that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'name', schema: { description: 'Name of the unmanaged device that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { device: { $ref: '#/components/schemas/unmanaged_device' }, ok: { type: 'boolean' }, }, required: ['device', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/devices/unmanaged/get', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'device', 'x-has-required-parameters': true, 'x-response-key': 'device', 'x-title': 'Get an Unmanaged Device', }, }, '/devices/unmanaged/list': { get: { description: 'Returns a list of all [unmanaged devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).\n\nAn unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).', operationId: 'devicesUnmanagedListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connected_account_ids', schema: { description: 'Array of IDs of the connected accounts for which you want to list devices.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type for which you want to list devices.', oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, }, { in: 'query', name: 'device_types', schema: { description: 'Array of device types for which you want to list devices.', items: { oneOf: [ { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, { description: 'Device type for keys.\n ', enum: ['keynest_key'], type: 'string', }, { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, { description: 'Device type for phones.\n ', enum: ['ios_phone', 'android_phone'], type: 'string', }, { description: 'Device type for cameras.', enum: [ 'ring_camera', 'tapo_camera', 'arlo_camera', 'reolink_camera', 'unifi_protect_camera', ], type: 'string', }, { description: 'Device type for speakers.', enum: ['sonos_speaker'], type: 'string', }, { description: 'Device type for environmental sensors.', enum: ['alertify_sensor'], type: 'string', }, { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, ], }, type: 'array', }, }, { in: 'query', name: 'manufacturer', schema: { description: 'Manufacturer for which you want to list devices.', enum: [ 'akuvox', 'august', 'avigilon_alta', 'brivo', 'butterflymx', 'doorking', 'four_suites', 'genie', 'igloo', 'keywe', 'kwikset', 'linear', 'nuki', 'philia', 'salto', 'samsung', 'schlage', 'seam', 'unknown', 'wyze', 'yale', 'two_n', 'ttlock', 'igloohome', 'controlbyweb', 'tedee', 'keyincode', 'ubiquiti', 'akiles', 'aqara', 'ecobee', 'eufy', 'dormakaba_oracode', 'dormakaba_oracode_iho', 'honeywell_resideo', 'keynest', 'korelock', 'lockly', 'minut', 'cielo', 'nest', 'noiseaware', 'sensi', 'sensibo', 'smartthings', 'tado', 'ultraloq', 'ring', 'tapo', 'arlo', 'reolink', 'unifi_protect', 'yale_connect', 'alertify', 'ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling', 'omnitec', 'kisi', 'slack', 'yacan', 'sonos', 'hayward_omnilogic', 'jandy_iaqualink', 'tuya', ], type: 'string', }, }, { in: 'query', name: 'device_ids', schema: { description: 'Array of device IDs for which you want to list devices.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned devices. Returns devices created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, { in: 'query', name: 'include_if', schema: { items: { enum: [ 'can_remotely_unlock', 'can_remotely_lock', 'can_program_offline_access_codes', 'can_program_online_access_codes', 'can_hvac_heat', 'can_hvac_cool', 'can_hvac_heat_cool', 'can_turn_off_hvac', 'can_activate_weekly_program', 'can_simulate_removal', 'can_simulate_connection', 'can_simulate_disconnection', 'can_unlock_with_code', 'can_run_thermostat_programs', 'can_program_thermostat_programs_as_weekday_weekend', 'can_program_thermostat_programs_as_different_each_day', 'can_program_thermostat_programs_as_same_each_day', 'can_simulate_hub_connection', 'can_simulate_hub_disconnection', 'can_simulate_paid_subscription', 'can_configure_auto_lock', 'can_stream_live_video', 'can_set_speaker_volume', 'can_mute_speaker', 'can_unmute_speaker', 'can_pause_speaker_playback', 'can_resume_speaker_playback', 'can_play_speaker_chime', 'can_play_speaker_favorite', 'can_play_speaker_audio_clip', 'can_control_temperature', ], type: 'string', }, type: 'array', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'exclude_if', schema: { items: { enum: [ 'can_remotely_unlock', 'can_remotely_lock', 'can_program_offline_access_codes', 'can_program_online_access_codes', 'can_hvac_heat', 'can_hvac_cool', 'can_hvac_heat_cool', 'can_turn_off_hvac', 'can_activate_weekly_program', 'can_simulate_removal', 'can_simulate_connection', 'can_simulate_disconnection', 'can_unlock_with_code', 'can_run_thermostat_programs', 'can_program_thermostat_programs_as_weekday_weekend', 'can_program_thermostat_programs_as_different_each_day', 'can_program_thermostat_programs_as_same_each_day', 'can_simulate_hub_connection', 'can_simulate_hub_disconnection', 'can_simulate_paid_subscription', 'can_configure_auto_lock', 'can_stream_live_video', 'can_set_speaker_volume', 'can_mute_speaker', 'can_unmute_speaker', 'can_pause_speaker_playback', 'can_resume_speaker_playback', 'can_play_speaker_chime', 'can_play_speaker_favorite', 'can_play_speaker_audio_clip', 'can_control_temperature', ], type: 'string', }, type: 'array', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'parent_device_id', schema: { description: 'ID of the parent device whose child devices you want to list. Specify `null` to list devices that have no parent device.', format: 'uuid', nullable: true, type: 'string', 'x-undocumented': 'Unreleased.', }, }, { in: 'query', name: 'limit', schema: { default: 22_900, description: 'Numerical limit on the number of devices to return.', format: 'float', type: 'number', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/unmanaged_device' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['devices', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/devices/unmanaged/list', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Unmanaged Devices', }, }, '/devices/unmanaged/update': { patch: { description: 'Updates a specified [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). To convert an unmanaged device to managed, set `is_managed` to `true`.\n\nAn unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).', operationId: 'devicesUnmanagedUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, device_id: { description: 'ID of the unmanaged device that you want to update.', format: 'uuid', type: 'string', }, is_managed: { description: 'Indicates whether the device is managed. Set this parameter to `true` to convert an unmanaged device to managed.', enum: [true], type: 'boolean', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, ], summary: '/devices/unmanaged/update', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices', 'unmanaged'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update an Unmanaged Device', }, }, '/devices/update': { patch: { description: "Updates a specified [device](https://www.seam.co/docs/core-concepts/devices).\n\nYou can add or change [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for a device, change the device's name, or [convert a managed device to unmanaged](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices).", operationId: 'devicesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { backup_access_code_pool_enabled: { description: "Indicates whether the device's [backup access code pool](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/backup-access-codes) is enabled. Set to `false` to disable the pool: Seam stops refilling it and removes any backup codes that have not yet been pulled into active use.", type: 'boolean', }, custom_metadata: { additionalProperties: { nullable: true, oneOf: [ { maxLength: 500, type: 'string' }, { type: 'boolean' }, ], }, description: 'Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs, with key names up to 40 characters long that cannot contain a period (.). [Adding custom metadata to a device](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter devices by the desired metadata](https://www.seam.co/docs/core-concepts/devices/filtering-devices-by-custom-metadata). Set a key to `null` or to an empty string to remove that key from the custom metadata.', type: 'object', }, device_id: { description: 'ID of the device that you want to update.', format: 'uuid', type: 'string', }, is_managed: { default: true, description: 'Indicates whether the device is managed. To unmanage a device, set `is_managed` to `false`.', type: 'boolean', }, name: { description: 'Name for the device.', nullable: true, type: 'string', }, properties: { properties: { name: { description: 'Name for the device.', nullable: true, type: 'string', }, }, type: 'object', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, ], summary: '/devices/update', tags: ['/devices'], 'x-fern-sdk-group-name': ['devices'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Device', }, }, '/events/get': { get: { description: 'Returns a specified event. This endpoint returns the same event that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to retrieve an event that already took place. Events older than 90 days are not returned.', operationId: 'eventsGetGet', parameters: [ { in: 'query', name: 'event_id', schema: { description: 'Unique identifier for the event that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'event_type', schema: { description: 'Type of the event that you want to get.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'device_id', schema: { description: 'Unique identifier for the device that triggered the event that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { event: { $ref: '#/components/schemas/event' }, message: { type: 'string' }, ok: { type: 'boolean' }, }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/events/get', tags: ['/events'], 'x-fern-sdk-group-name': ['events'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'event', 'x-has-required-parameters': true, 'x-response-key': 'event', 'x-title': 'Get an Event', }, }, '/events/list': { get: { description: 'Returns a list of all events. This endpoint returns the same events that would be sent to a [webhook](https://www.seam.co/docs/developer-tools/webhooks), but it enables you to filter or see events that already took place. Only events from the last 90 days are returned.', operationId: 'eventsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list events.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'unstable_offset', schema: { description: 'Offset for the events that you want to list.', format: 'float', type: 'number', }, }, { in: 'query', name: 'since', schema: { description: 'Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a `since` older than 90 days is treated as 90 days ago.', type: 'string', }, }, { in: 'query', name: 'between', schema: { description: 'Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a lower timestamp older than 90 days is treated as 90 days ago.', items: { type: 'string' }, maxItems: 2, minItems: 2, type: 'array', }, }, { in: 'query', name: 'device_id', schema: { description: 'ID of the device for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_ids', schema: { description: 'IDs of the devices for which you want to list events.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'acs_system_id', schema: { description: 'ID of the access system for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_system_ids', schema: { description: 'IDs of the access systems for which you want to list events.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'access_code_id', schema: { description: 'ID of the access code for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_code_ids', schema: { description: 'IDs of the access codes for which you want to list events.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'event_type', schema: { description: 'Type of the events that you want to list.', enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, }, { in: 'query', name: 'event_types', schema: { description: 'Types of the events that you want to list.', items: { enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Numerical limit on the number of events to return.', format: 'float', type: 'number', }, }, { in: 'query', name: 'event_ids', schema: { description: 'IDs of the events that you want to list.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'acs_entrance_id', schema: { description: 'ID of the ACS entrance for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_user_id', schema: { description: 'ID of the ACS user for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_id', schema: { description: 'ID of the access grant for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_grant_ids', schema: { description: 'IDs of the access grants for which you want to list events.', items: { format: 'uuid', type: 'string' }, maxItems: 100, type: 'array', }, }, { in: 'query', name: 'access_method_id', schema: { description: 'ID of the access method for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'access_method_ids', schema: { description: 'IDs of the access methods for which you want to list events.', items: { format: 'uuid', type: 'string' }, maxItems: 100, type: 'array', }, }, { in: 'query', name: 'acs_credential_id', schema: { description: 'ID of the ACS credential for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'space_id', schema: { description: 'ID of the space for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'space_ids', schema: { description: 'IDs of the spaces for which you want to list events.', items: { format: 'uuid', type: 'string' }, maxItems: 100, type: 'array', }, }, { in: 'query', name: 'acs_access_group_id', schema: { description: 'ID of the ACS access group for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_encoder_id', schema: { description: 'ID of the ACS encoder for which you want to list events.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { events: { items: { $ref: '#/components/schemas/event' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['events', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/events/list', tags: ['/events'], 'x-fern-sdk-group-name': ['events'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'events', 'x-has-required-parameters': true, 'x-response-key': 'events', 'x-title': 'List Events', }, }, '/instant_keys/delete': { delete: { description: 'Deletes a specified [Instant Key](https://www.seam.co/docs/use-cases/granting-access/using-instant-keys).', operationId: 'instantKeysDeleteDelete', parameters: [ { in: 'query', name: 'instant_key_id', required: true, schema: { description: 'ID of the Instant Key that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/instant_keys/delete', tags: [], 'x-fern-sdk-group-name': ['instant_keys'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Instant Key', }, }, '/instant_keys/get': { get: { description: 'Gets an [instant key](https://www.seam.co/docs/use-cases/granting-access/using-instant-keys).', operationId: 'instantKeysGetGet', parameters: [ { in: 'query', name: 'instant_key_id', schema: { description: 'ID of the instant key to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'instant_key_url', schema: { description: 'URL of the instant key to get.', format: 'uri', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { instant_key: { $ref: '#/components/schemas/instant_key' }, ok: { type: 'boolean' }, }, required: ['instant_key', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/instant_keys/get', tags: [], 'x-fern-sdk-group-name': ['instant_keys'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'instant_key', 'x-has-required-parameters': true, 'x-response-key': 'instant_key', 'x-title': 'Get an Instant Key', }, }, '/instant_keys/list': { get: { description: 'Returns a list of all [instant keys](https://www.seam.co/docs/use-cases/granting-access/using-instant-keys).', operationId: 'instantKeysListGet', parameters: [ { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity by which you want to filter the list of Instant Keys.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { instant_keys: { items: { $ref: '#/components/schemas/instant_key' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['instant_keys', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/instant_keys/list', tags: [], 'x-fern-sdk-group-name': ['instant_keys'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'instant_keys', 'x-response-key': 'instant_keys', 'x-title': 'List Instant Keys', }, }, '/locks/configure_auto_lock': { post: { description: 'Configures the auto-lock setting for a specified [lock](https://www.seam.co/docs/low-level-apis/smart-locks).', operationId: 'locksConfigureAutoLockPost', requestBody: { content: { 'application/json': { schema: { properties: { auto_lock_delay_seconds: { description: 'Delay in seconds before the lock automatically locks. Required when enabling auto-lock. Must be between 1 and 60.', format: 'float', maximum: 60, minimum: 1, type: 'number', }, auto_lock_enabled: { description: 'Whether to enable or disable auto-lock.', type: 'boolean', }, device_id: { description: 'ID of the lock for which you want to configure the auto-lock.', format: 'uuid', type: 'string', }, }, required: ['device_id', 'auto_lock_enabled'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/locks/configure_auto_lock', tags: ['/locks'], 'x-action-attempt-type': 'CONFIGURE_AUTO_LOCK', 'x-fern-sdk-group-name': ['locks'], 'x-fern-sdk-method-name': 'configure_auto_lock', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Configure Auto-Lock', }, }, '/locks/get': { get: { description: 'Returns a specified [lock](https://www.seam.co/docs/low-level-apis/smart-locks).', operationId: 'locksGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the lock that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'name', schema: { description: 'Name of the lock that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { device: { $ref: '#/components/schemas/device' }, lock: { $ref: '#/components/schemas/device' }, ok: { type: 'boolean' }, }, required: ['lock', 'device', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/locks/get', tags: ['/locks'], 'x-deprecated': 'Use `/devices/get` instead.', 'x-fern-sdk-group-name': ['locks'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'device', 'x-has-required-parameters': true, 'x-response-key': 'device', 'x-title': 'Get a Lock', }, }, '/locks/list': { get: { description: 'Returns a list of all [locks](https://www.seam.co/docs/low-level-apis/smart-locks).', operationId: 'locksListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type of the locks that you want to list.', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, }, { in: 'query', name: 'device_types', schema: { description: 'Device types of the locks that you want to list.', items: { description: 'Device type for smartlocks.\n ', enum: [ 'akuvox_lock', 'august_lock', 'brivo_access_point', 'butterflymx_panel', 'avigilon_alta_entry', 'doorking_lock', 'genie_door', 'igloo_lock', 'linear_lock', 'lockly_lock', 'kwikset_lock', 'nuki_lock', 'salto_lock', 'schlage_lock', 'smartthings_lock', 'wyze_lock', 'yale_lock', 'yale_access_lock', 'yale_home_lock', 'yale_connect_lock', 'two_n_intercom', 'controlbyweb_device', 'ttlock_lock', 'igloohome_lock', 'four_suites_door', 'dormakaba_oracode_door', 'tedee_lock', 'akiles_lock', 'ultraloq_lock', 'yacan_lock', 'keyincode_lock', 'omnitec_lock', 'kisi_lock', 'aqara_lock', 'tuya_lock', 'eufy_lock', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'manufacturer', schema: { description: 'Manufacturer of the locks that you want to list.', enum: [ 'akuvox', 'august', 'brivo', 'butterflymx', 'avigilon_alta', 'doorking', 'genie', 'igloo', 'linear', 'kwikset', 'nuki', 'salto', 'schlage', 'seam', 'wyze', 'yale', 'two_n', 'controlbyweb', 'ttlock', 'igloohome', 'four_suites', 'tedee', 'keyincode', 'akiles', 'aqara', 'eufy', 'dormakaba_oracode', 'dormakaba_oracode_iho', 'korelock', 'lockly', 'smartthings', 'ultraloq', 'yale_connect', 'omnitec', 'kisi', 'yacan', 'tuya', ], type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, locks: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['locks', 'devices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/locks/list', tags: ['/locks'], 'x-fern-sdk-group-name': ['locks'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Locks', }, }, '/locks/lock_door': { post: { description: 'Locks a [lock](https://www.seam.co/docs/low-level-apis/smart-locks). See also [Locking and Unlocking Smart Locks](https://www.seam.co/docs/low-level-apis/smart-locks/lock-and-unlock).', operationId: 'locksLockDoorPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the lock that you want to lock.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/locks/lock_door', tags: ['/locks'], 'x-action-attempt-type': 'LOCK_DOOR', 'x-fern-sdk-group-name': ['locks'], 'x-fern-sdk-method-name': 'lock_door', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Lock a Lock', }, }, '/locks/simulate/keypad_code_entry': { post: { description: 'Simulates the entry of a code on a keypad. You can only perform this action for [August](https://www.seam.co/docs/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'locksSimulateKeypadCodeEntryPost', requestBody: { content: { 'application/json': { schema: { properties: { code: { description: 'Code that you want to simulate entering on a keypad.', type: 'string', }, device_id: { description: 'ID of the device for which you want to simulate a keypad code entry.', format: 'uuid', type: 'string', }, }, required: ['device_id', 'code'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/locks/simulate/keypad_code_entry', tags: ['/locks'], 'x-action-attempt-type': 'SIMULATE_KEYPAD_CODE_ENTRY', 'x-fern-sdk-group-name': ['locks', 'simulate'], 'x-fern-sdk-method-name': 'keypad_code_entry', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Simulate a Keypad Code Entry', }, }, '/locks/simulate/manual_lock_via_keypad': { post: { description: 'Simulates a manual lock action using a keypad. You can only perform this action for [August](https://www.seam.co/docs/device-and-system-integration-guides/august-locks) devices within [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'locksSimulateManualLockViaKeypadPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for which you want to simulate a manual lock action using a keypad.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/locks/simulate/manual_lock_via_keypad', tags: ['/locks'], 'x-action-attempt-type': 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD', 'x-fern-sdk-group-name': ['locks', 'simulate'], 'x-fern-sdk-method-name': 'manual_lock_via_keypad', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Simulate a Manual Lock Action Using a Keypad', }, }, '/locks/unlock_door': { post: { description: 'Unlocks a [lock](https://www.seam.co/docs/low-level-apis/smart-locks). See also [Locking and Unlocking Smart Locks](https://www.seam.co/docs/low-level-apis/smart-locks/lock-and-unlock).', operationId: 'locksUnlockDoorPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the lock that you want to unlock.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/locks/unlock_door', tags: ['/locks'], 'x-action-attempt-type': 'UNLOCK_DOOR', 'x-fern-sdk-group-name': ['locks'], 'x-fern-sdk-method-name': 'unlock_door', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Unlock a Lock', }, }, '/media/get': { get: { description: 'Returns a specified piece of media, such as a video clip or thumbnail image captured for a camera event, with a short-lived URL from which you can download it. Camera events list their media in `media_ids`. This endpoint is in beta.', operationId: 'mediaGetGet', parameters: [ { in: 'query', name: 'media_id', required: true, schema: { description: 'ID of the media that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'format', required: false, schema: { default: 'json', description: "Response format. `json` returns the media object. `redirect` responds with a `302` redirect to the media's download URL, so you can use this endpoint directly as the source of an image or video.", enum: ['json', 'redirect'], type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { media: { $ref: '#/components/schemas/media' }, ok: { type: 'boolean' }, }, required: ['media', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/media/get', tags: [], 'x-fern-sdk-group-name': ['media'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'media', 'x-response-key': 'media', 'x-title': 'Get Media', }, }, '/noise_sensors/list': { get: { description: 'Returns a list of all [noise sensors](https://www.seam.co/docs/capability-guides/noise-sensors).', operationId: 'noiseSensorsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type of the noise sensors that you want to list.', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, }, { in: 'query', name: 'device_types', schema: { description: 'Device types of the noise sensors that you want to list.', items: { description: 'Device type for noise sensors.\n ', enum: ['noiseaware_activity_zone', 'minut_sensor'], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'manufacturer', schema: { description: 'Manufacturers of the noise sensors that you want to list.', enum: ['minut', 'noiseaware', 'alertify'], type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, noise_sensors: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['noise_sensors', 'devices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/noise_sensors/list', tags: ['/noise_sensors'], 'x-fern-sdk-group-name': ['noise_sensors'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Noise Sensors', }, }, '/noise_sensors/noise_thresholds/create': { post: { description: 'Creates a new [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them.\n\nFor Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the request fails with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the request fails with a `noise_profile_assignment_unverified` error and nothing is changed; try again.', operationId: 'noiseSensorsNoiseThresholdsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for which you want to create a noise threshold.', format: 'uuid', type: 'string', }, ends_daily_at: { description: 'Time at which the new noise threshold should become inactive daily.', type: 'string', }, name: { description: 'Name of the new noise threshold.', type: 'string', }, noise_threshold_decibels: { description: 'Noise level in decibels for the new noise threshold.', format: 'float', type: 'number', }, noise_threshold_nrs: { description: 'Noise level in Noiseaware Noise Risk Score (NRS) for the new noise threshold. This parameter is only relevant for [Noiseaware sensors](https://www.seam.co/docs/device-and-system-integration-guides/noiseaware-sensors).', format: 'float', type: 'number', }, starts_daily_at: { description: 'Time at which the new noise threshold should become active daily.', type: 'string', }, }, required: ['device_id', 'starts_daily_at', 'ends_daily_at'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, noise_threshold: { $ref: '#/components/schemas/noise_threshold', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'noise_threshold', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/noise_sensors/noise_thresholds/create', tags: ['/noise_sensors'], 'x-action-attempt-type': 'CREATE_NOISE_THRESHOLD', 'x-fern-sdk-group-name': ['noise_sensors', 'noise_thresholds'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'noise_threshold', 'x-response-key': 'noise_threshold', 'x-title': 'Create a Noise Threshold', }, }, '/noise_sensors/noise_thresholds/delete': { delete: { description: 'Deletes a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) from a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors).\n\nFor Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the action attempt ends with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the action attempt ends with a `noise_profile_assignment_unverified` error and nothing is changed; try again.', operationId: 'noiseSensorsNoiseThresholdsDeleteDelete', parameters: [ { in: 'query', name: 'noise_threshold_id', required: true, schema: { description: 'ID of the noise threshold that you want to delete.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the device that contains the noise threshold that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/noise_sensors/noise_thresholds/delete', tags: ['/noise_sensors'], 'x-action-attempt-type': 'DELETE_NOISE_THRESHOLD', 'x-fern-sdk-group-name': ['noise_sensors', 'noise_thresholds'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Noise Threshold', }, }, '/noise_sensors/noise_thresholds/get': { get: { description: 'Returns a specified [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors).', operationId: 'noiseSensorsNoiseThresholdsGetGet', parameters: [ { in: 'query', name: 'noise_threshold_id', required: true, schema: { description: 'ID of the noise threshold that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { noise_threshold: { $ref: '#/components/schemas/noise_threshold', }, ok: { type: 'boolean' }, }, required: ['noise_threshold', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/noise_sensors/noise_thresholds/get', tags: ['/noise_sensors'], 'x-fern-sdk-group-name': ['noise_sensors', 'noise_thresholds'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'noise_threshold', 'x-response-key': 'noise_threshold', 'x-title': 'Get a Noise Threshold', }, }, '/noise_sensors/noise_thresholds/list': { get: { description: 'Returns a list of all [noise thresholds](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors).', operationId: 'noiseSensorsNoiseThresholdsListGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the device for which you want to list noise thresholds.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'is_programmed', required: false, schema: { description: 'Enables you to limit the returned noise thresholds by whether they are programmed on the noise sensor. To list only noise thresholds that are programmed on the noise sensor, set this parameter to `true`. To list only noise thresholds that are not programmed on the noise sensor, se this parameter to `false`.', type: 'boolean', 'x-undocumented': 'Not sure if this parameter is supported or what it does.', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { noise_thresholds: { items: { $ref: '#/components/schemas/noise_threshold' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['noise_thresholds', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/noise_sensors/noise_thresholds/list', tags: ['/noise_sensors'], 'x-fern-sdk-group-name': ['noise_sensors', 'noise_thresholds'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'noise_thresholds', 'x-response-key': 'noise_thresholds', 'x-title': 'List Noise Thresholds', }, }, '/noise_sensors/noise_thresholds/update': { patch: { description: 'Updates a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors).\n\nFor Minut sensors, Seam does not change thresholds that Minut manages through a noise preset, which can be shared across homes. If the home of the sensor is assigned a noise preset, the action attempt ends with a `noise_threshold_managed_by_noise_profile` error; edit the noise preset in the Minut app instead. If Seam cannot check which noise preset applies to the home of the sensor, the action attempt ends with a `noise_profile_assignment_unverified` error and nothing is changed; try again.', operationId: 'noiseSensorsNoiseThresholdsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device that contains the noise threshold that you want to update.', format: 'uuid', type: 'string', }, ends_daily_at: { description: 'Time at which the noise threshold should become inactive daily.', type: 'string', }, name: { description: 'Name of the noise threshold that you want to update.', type: 'string', }, noise_threshold_decibels: { description: 'Noise level in decibels for the noise threshold.', format: 'float', type: 'number', }, noise_threshold_id: { description: 'ID of the noise threshold that you want to update.', format: 'uuid', type: 'string', }, noise_threshold_nrs: { description: 'Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://www.seam.co/docs/device-and-system-integration-guides/noiseaware-sensors).', format: 'float', type: 'number', }, starts_daily_at: { description: 'Time at which the noise threshold should become active daily.', type: 'string', }, }, required: ['noise_threshold_id', 'device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/noise_sensors/noise_thresholds/update', tags: ['/noise_sensors'], 'x-action-attempt-type': 'UPDATE_NOISE_THRESHOLD', 'x-fern-sdk-group-name': ['noise_sensors', 'noise_thresholds'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Noise Threshold', }, }, '/noise_sensors/simulate/trigger_noise_threshold': { post: { description: 'Simulates the triggering of a [noise threshold](https://www.seam.co/docs/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://www.seam.co/docs/capability-guides/noise-sensors) in a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', operationId: 'noiseSensorsSimulateTriggerNoiseThresholdPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for which you want to simulate the triggering of a noise threshold.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/noise_sensors/simulate/trigger_noise_threshold', tags: ['/noise_sensors'], 'x-fern-sdk-group-name': ['noise_sensors', 'simulate'], 'x-fern-sdk-method-name': 'trigger_noise_threshold', 'x-response-key': null, 'x-title': 'Simulate Triggering a Noise Threshold', }, }, '/phones/deactivate': { delete: { description: 'Deactivates a phone, which is useful, for example, if a user has lost their phone. For more information, see [App User Lost Phone Process](https://www.seam.co/docs/capability-guides/mobile-access/managing-phones-for-a-user-identity#app-user-lost-phone-process).', operationId: 'phonesDeactivateDelete', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'Device ID of the phone that you want to deactivate.', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/phones/deactivate', tags: ['/phones'], 'x-fern-sdk-group-name': ['phones'], 'x-fern-sdk-method-name': 'deactivate', 'x-response-key': null, 'x-title': 'Deactivate a Phone', }, }, '/phones/get': { get: { description: 'Returns a specified [phone](https://www.seam.co/docs/capability-guides/mobile-access/managing-phones-for-a-user-identity).', operationId: 'phonesGetGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'Device ID of the phone that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, phone: { $ref: '#/components/schemas/phone' }, }, required: ['phone', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/phones/get', tags: ['/phones'], 'x-fern-sdk-group-name': ['phones'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'phone', 'x-response-key': 'phone', 'x-title': 'Get a Phone', }, }, '/phones/list': { get: { description: 'Returns a list of all [phones](https://www.seam.co/docs/capability-guides/mobile-access/managing-phones-for-a-user-identity). To filter the list of returned phones by a specific owner user identity or credential, include the `owner_user_identity_id` or `acs_credential_id`, respectively, in the request body.', operationId: 'phonesListGet', parameters: [ { in: 'query', name: 'owner_user_identity_id', schema: { description: 'ID of the user identity that represents the owner by which you want to filter the list of returned phones.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_credential_id', schema: { description: 'ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) by which you want to filter the list of returned phones.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, phones: { items: { $ref: '#/components/schemas/phone' }, type: 'array', }, }, required: ['phones', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/phones/list', tags: ['/phones'], 'x-fern-sdk-group-name': ['phones'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'phones', 'x-response-key': 'phones', 'x-title': 'List Phones', }, }, '/phones/simulate/create_sandbox_phone': { post: { description: 'Creates a new simulated phone in a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Creating a Simulated Phone for a User Identity](https://www.seam.co/docs/capability-guides/mobile-access/developing-in-a-sandbox-workspace#creating-a-simulated-phone-for-a-user-identity).', operationId: 'phonesSimulateCreateSandboxPhonePost', requestBody: { content: { 'application/json': { schema: { properties: { assa_abloy_metadata: { default: {}, description: 'ASSA ABLOY metadata that you want to associate with the simulated phone.', properties: { application_version: { default: '1.0.0', description: 'Application version that you want to use for the simulated phone.', type: 'string', }, ble_capability: { default: true, description: 'Indicates whether the simulated phone should have Bluetooth low energy (BLE) capability.', type: 'boolean', }, hce_capability: { default: false, description: 'Indicates whether the simulated phone should have host card emulation (HCE) capability.', type: 'boolean', }, nfc_capability: { default: false, description: 'Indicates whether the simulated phone should have near-field communication (NFC) capability.', type: 'boolean', }, seos_applet_version: { default: '1.0.0', description: 'SEOS applet version that you want to use for the simulated phone.', type: 'string', }, seos_tsm_endpoint_id: { default: 1, description: 'ID of the SEOS trusted service manager (TSM) endpoint that you want to use for the simulated phone.', format: 'float', type: 'number', }, }, type: 'object', }, custom_sdk_installation_id: { description: 'ID of the custom SDK installation that you want to use for the simulated phone.', type: 'string', }, phone_metadata: { default: {}, description: 'Metadata that you want to associate with the simulated phone.', properties: { device_manufacturer: { default: 'Samsung', description: 'Manufacturer that you want to use for the simulated phone.', type: 'string', }, device_model: { default: 'Samsung Galaxy S10', description: 'Device model that you want to use for the simulated phone.', type: 'string', }, operating_system: { default: 'android', description: 'Mobile operating system that you want to use for the simulated phone.', enum: ['android', 'ios'], type: 'string', }, os_version: { default: '10', description: 'Mobile operating system version that you want to use for the simulated phone.', type: 'string', }, }, type: 'object', }, user_identity_id: { description: 'ID of the user identity that you want to associate with the simulated phone.', format: 'uuid', type: 'string', }, }, required: ['user_identity_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, phone: { $ref: '#/components/schemas/phone' }, }, required: ['phone', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/phones/simulate/create_sandbox_phone', tags: ['/phones'], 'x-fern-sdk-group-name': ['phones', 'simulate'], 'x-fern-sdk-method-name': 'create_sandbox_phone', 'x-fern-sdk-return-value': 'phone', 'x-response-key': 'phone', 'x-title': 'Create a Sandbox Phone', }, }, '/pools/heat': { post: { description: "Requests heating of specified pool or spa water to a set point. The set point must be within the range reported by the device's `properties.min_heating_set_point_*` and `properties.max_heating_set_point_*` fields. The returned action attempt stays `pending` until the pool controller reports the requested state back, which can take up to 90 seconds, and fails with `temperature_setting_not_confirmed` if it never does. To check whether the water supports temperature control, use `device.can_control_temperature`.", operationId: 'poolsHeatPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for the pool or spa water that you want to heat.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: 'Target water temperature in °C. Provide exactly one of `heating_set_point_celsius` and `heating_set_point_fahrenheit`.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Target water temperature in °F. Provide exactly one of `heating_set_point_celsius` and `heating_set_point_fahrenheit`.', format: 'float', type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/pools/heat', tags: [], 'x-action-attempt-type': 'SET_TEMPERATURE_CONTROLLER_MODE', 'x-fern-sdk-group-name': ['pools'], 'x-fern-sdk-method-name': 'heat', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Heat a Pool or Spa', 'x-undocumented': 'Unreleased.', }, }, '/pools/list': { get: { description: 'Returns a list of all pool controllers, pools, and spas. Each controller lists its pools and spas in `child_device_ids`, and each pool or spa carries its controller in `parent_device_id`.', operationId: 'poolsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type by which you want to filter pool devices.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, }, { in: 'query', name: 'device_types', schema: { description: 'Array of device types by which you want to filter pool devices.', items: { description: 'Device type for pool controllers, pools, and spas.', enum: [ 'hayward_pool_controller', 'jandy_pool_controller', 'hayward_pool', 'jandy_pool', ], type: 'string', 'x-undocumented': 'Unreleased.', }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['devices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/pools/list', tags: [], 'x-fern-sdk-group-name': ['pools'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Pool Devices', 'x-undocumented': 'Unreleased.', }, }, '/pools/turn_off': { post: { description: 'Turns off the temperature controller of specified pool or spa water. The set point is left unchanged, and other equipment such as pumps, lights, and chlorinators is not affected. The returned action attempt stays `pending` until the pool controller reports temperature control as off, which can take up to 90 seconds, and fails with `temperature_setting_not_confirmed` if it never does. To check whether the water supports temperature control, use `device.can_control_temperature`.', operationId: 'poolsTurnOffPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the device for the pool or spa water whose temperature control you want to turn off.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/pools/turn_off', tags: [], 'x-action-attempt-type': 'SET_TEMPERATURE_CONTROLLER_MODE', 'x-fern-sdk-group-name': ['pools'], 'x-fern-sdk-method-name': 'turn_off', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Turn Off Temperature Control of a Pool or Spa', 'x-undocumented': 'Unreleased.', }, }, '/seam/bridge/v1/bridge_client_sessions/create': { post: { description: 'Creates a new [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session.', operationId: 'seamBridgeV1BridgeClientSessionsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { bridge_client_machine_identifier_key: { description: 'Identifier key of the client machine for the Seam Bridge client that you want to create.', minLength: 1, type: 'string', }, bridge_client_name: { description: 'Name of the Seam Bridge client that you want to create.', type: 'string', }, bridge_client_time_zone: { description: 'Time zone for the Seam Bridge client that you want to create.', type: 'string', }, }, required: [ 'bridge_client_name', 'bridge_client_time_zone', 'bridge_client_machine_identifier_key', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_client_session: { $ref: '#/components/schemas/bridge_client_session', }, ok: { type: 'boolean' }, }, required: ['bridge_client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{}, { certified_client_optional: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/create', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'bridge_client_session', 'x-response-key': 'bridge_client_session', 'x-title': 'Create a Bridge Client Session', 'x-undocumented': 'Seam Bridge client only.', }, }, '/seam/bridge/v1/bridge_client_sessions/get': { get: { description: 'Returns the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session associated with the client session token used for authentication.', operationId: 'seamBridgeV1BridgeClientSessionsGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_client_session: { $ref: '#/components/schemas/bridge_client_session', }, ok: { type: 'boolean' }, }, required: ['bridge_client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'bridge_client_session', 'x-response-key': 'bridge_client_session', 'x-title': 'Get a Seam Bridge Client Session', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/bridge/v1/bridge_client_sessions/refresh_tailscale_auth_key': { post: { description: 'Refreshes the Tailscale auth key for the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session associated with the client session token used for authentication.', operationId: 'seamBridgeV1BridgeClientSessionsRefreshTailscaleAuthKeyPost', responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_client_session: { $ref: '#/components/schemas/bridge_client_session', }, ok: { type: 'boolean' }, }, required: ['bridge_client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/refresh_tailscale_auth_key', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'refresh_tailscale_auth_key', 'x-fern-sdk-return-value': 'bridge_client_session', 'x-response-key': 'bridge_client_session', 'x-title': 'Refresh the Tailscale Auth Key for a Seam Bridge Client Session', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token': { post: { description: 'Returns the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session associated with the client session token used for authentication and refreshed telemetry token.', operationId: 'seamBridgeV1BridgeClientSessionsRefreshTelemetryTokenPost', responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_client_session: { $ref: '#/components/schemas/bridge_client_session', }, ok: { type: 'boolean' }, }, required: ['bridge_client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'refresh_telemetry_token', 'x-fern-sdk-return-value': 'bridge_client_session', 'x-response-key': 'bridge_client_session', 'x-title': 'Refresh the Telemetry Token for a Seam Bridge Client Session', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': { post: { description: 'Generate a new pairing code and return the updated [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session.', operationId: 'seamBridgeV1BridgeClientSessionsRegeneratePairingCodePost', responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_client_session: { $ref: '#/components/schemas/bridge_client_session', }, ok: { type: 'boolean' }, }, required: ['bridge_client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'regenerate_pairing_code', 'x-fern-sdk-return-value': 'bridge_client_session', 'x-response-key': 'bridge_client_session', 'x-title': 'Regenerate a Seam Bridge Client Session Pairing Code', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/bridge/v1/bridge_client_sessions/report_status': { post: { description: 'Report the status of a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client.', operationId: 'seamBridgeV1BridgeClientSessionsReportStatusPost', requestBody: { content: { 'application/json': { schema: { properties: { is_tailscale_connected: { description: 'Indicates whether Tailscale is connected.', nullable: true, type: 'boolean', }, tailscale_ip_v4: { description: 'Tailscale IPv4 address.', nullable: true, type: 'string', }, }, required: ['is_tailscale_connected', 'tailscale_ip_v4'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_client_sessions/report_status', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_client_sessions', ], 'x-fern-sdk-method-name': 'report_status', 'x-response-key': null, 'x-title': 'Report the Status of a Seam Bridge Client', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/bridge/v1/bridge_connected_systems/list': { get: { description: 'Returns the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge)-connected systems associated with the client session token used for authentication.', operationId: 'seamBridgeV1BridgeConnectedSystemsListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { bridge_connected_systems: { items: { $ref: '#/components/schemas/bridge_connected_systems', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['bridge_connected_systems', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ bridge_client_session: [] }], summary: '/seam/bridge/v1/bridge_connected_systems/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'bridge', 'v1', 'bridge_connected_systems', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'bridge_connected_systems', 'x-response-key': 'bridge_connected_systems', 'x-title': 'List Bridge-Connected Systems', 'x-undocumented': 'Seam Bridge Client only.', }, }, '/seam/connect_webview/v1/get_current_pane': { get: { description: 'Returns the current render pane for a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews).', operationId: 'seamConnectWebviewV1GetCurrentPaneGet', parameters: [ { in: 'query', name: 'connect_webview_id', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pane: { $ref: '#/components/schemas/access_code' }, }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/connect_webview/v1/get_current_pane', tags: [], 'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'], 'x-fern-sdk-method-name': 'get_current_pane', 'x-fern-sdk-return-value': 'pane', 'x-response-key': 'pane', 'x-title': 'Get Current Pane', 'x-undocumented': 'Internal endpoint for driving Connect Webview flows programmatically.', }, }, '/seam/connect_webview/v1/reset': { post: { description: 'Resets an errored [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) so its login flow can be retried.', operationId: 'seamConnectWebviewV1ResetPost', requestBody: { content: { 'application/json': { schema: { properties: { connect_webview_id: { format: 'uuid', type: 'string' }, }, required: ['connect_webview_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/connect_webview/v1/reset', tags: [], 'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'], 'x-fern-sdk-method-name': 'reset', 'x-fern-sdk-return-value': 'ok', 'x-response-key': 'ok', 'x-title': 'Reset Connect Webview', 'x-undocumented': 'Internal endpoint for driving Connect Webview flows programmatically.', }, }, '/seam/connect_webview/v1/submit': { post: { description: 'Submits pane arguments to advance a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) login state machine.', operationId: 'seamConnectWebviewV1SubmitPost', requestBody: { content: { 'application/json': { schema: { properties: { connect_webview_id: { format: 'uuid', type: 'string' }, submit_args: { additionalProperties: {}, nullable: true, type: 'object', }, }, required: ['connect_webview_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/connect_webview/v1/submit', tags: [], 'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'], 'x-fern-sdk-method-name': 'submit', 'x-fern-sdk-return-value': 'ok', 'x-response-key': 'ok', 'x-title': 'Submit Connect Webview Pane', 'x-undocumented': 'Internal endpoint for driving Connect Webview flows programmatically.', }, }, '/seam/console/v1/cameras/live_views/create': { post: { description: 'Creates a camera live view session and a short-lived client session that owns it. Console passes the returned client session token to `/cameras/live_views/offer` and `/cameras/live_views/stop`.', operationId: 'seamConsoleV1CamerasLiveViewsCreatePost', requestBody: { content: { 'application/json': { schema: { additionalProperties: false, properties: { device_id: { description: 'ID of the camera to view.', format: 'uuid', type: 'string', }, duration_seconds: { default: 600, description: 'Number of seconds for which the live view session is valid, up to 600.', maximum: 600, minimum: 1, type: 'integer', }, include_audio: { default: false, description: "Indicates whether to include the camera's audio.", type: 'boolean', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { camera_live_view_session: { $ref: '#/components/schemas/camera_live_view_session', }, client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: [ 'camera_live_view_session', 'client_session', 'ok', ], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/cameras/live_views/create', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'cameras', 'live_views', ], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'camera_live_view_session', 'x-response-key': 'camera_live_view_session', 'x-title': 'Create a Camera Live View Session for Console', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/connected_accounts/replace_bridge': { post: { description: "Moves a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) whose [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) is disconnected onto a newly installed Seam Bridge, identified by the pairing code it shows. The connected account, its devices and its ID stay the same, and no provider sign-in is needed. Seam first checks that it can reach the provider through the new bridge. Only available for providers whose account doesn't depend on the bridge, such as Salto Space.", operationId: 'seamConsoleV1ConnectedAccountsReplaceBridgePost', requestBody: { content: { 'application/json': { schema: { properties: { connected_account_id: { description: 'ID of the connected account whose Seam Bridge you want to replace.', format: 'uuid', type: 'string', }, pairing_code: { description: 'Pairing code shown in the new Seam Bridge app.', minLength: 1, type: 'string', }, }, required: ['connected_account_id', 'pairing_code'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/connected_accounts/replace_bridge', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'connected_accounts', ], 'x-fern-sdk-method-name': 'replace_bridge', 'x-response-key': null, 'x-title': 'Replace the Seam Bridge of a Connected Account', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/console/v1/credits/checkout/start': { post: { description: "Starts the Stripe Checkout for the first purchase of a monthly credit package, or replaces the organization's unfinished one.", operationId: 'seamConsoleV1CreditsCheckoutStartPost', requestBody: { content: { 'application/json': { schema: { properties: { cancel_url: { format: 'uri', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, package_quantity: { exclusiveMinimum: true, minimum: 0, type: 'integer', }, success_url: { format: 'uri', type: 'string' }, }, required: [ 'organization_id', 'package_quantity', 'success_url', 'cancel_url', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { checkout_url: { format: 'uri', type: 'string' }, credit_subscription_id: { format: 'uuid', type: 'string' }, ok: { type: 'boolean' }, }, required: ['checkout_url', 'credit_subscription_id', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/checkout/start', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'checkout', ], 'x-fern-sdk-method-name': 'start', 'x-response-key': null, 'x-title': 'Start a Credit Subscription Checkout', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/get': { post: { description: "Returns the organization's credit subscription and its credit usage for the subscription's current period.", operationId: 'seamConsoleV1CreditsGetPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { credits: { properties: { credit_subscription: { nullable: true, properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: [ 'package_quantity', 'hosted_invoice_url', ], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, is_test_mode: { type: 'boolean' }, trial: { nullable: true, properties: { can_extend_trial: { type: 'boolean' }, extended_trial_ends_at: { format: 'date-time', nullable: true, type: 'string', }, is_active: { type: 'boolean' }, is_credits_used_up: { type: 'boolean' }, is_suspended: { type: 'boolean' }, remaining_credits: { format: 'float', nullable: true, type: 'number', }, trial_credits: { format: 'float', type: 'number' }, trial_ends_at: { format: 'date-time', type: 'string', }, trial_started_at: { format: 'date-time', type: 'string', }, used_credits: { format: 'float', nullable: true, type: 'number', }, }, required: [ 'trial_started_at', 'trial_ends_at', 'is_active', 'is_suspended', 'trial_credits', 'used_credits', 'remaining_credits', 'is_credits_used_up', 'can_extend_trial', 'extended_trial_ends_at', ], type: 'object', }, usage: { nullable: true, properties: { allowance_tokens: { format: 'float', type: 'number', }, as_of: { format: 'date-time', type: 'string' }, breakdown: { items: { properties: { billable_action: { type: 'string' }, count: { format: 'float', type: 'number' }, label: { type: 'string' }, token_weight: { format: 'float', type: 'number', }, tokens: { format: 'float', type: 'number' }, }, required: [ 'billable_action', 'label', 'count', 'token_weight', 'tokens', ], type: 'object', }, type: 'array', }, carried_credit_grants: { items: { properties: { expires_at: { format: 'date-time', type: 'string', }, remaining_tokens: { format: 'float', type: 'number', }, tokens: { format: 'float', type: 'number' }, }, required: [ 'tokens', 'remaining_tokens', 'expires_at', ], type: 'object', }, type: 'array', }, carried_remaining_tokens: { format: 'float', type: 'number', }, carried_tokens: { format: 'float', type: 'number' }, connectivity: { items: { properties: { device_months: { format: 'float', type: 'number', }, label: { type: 'string' }, metric: { type: 'string' }, tokens: { format: 'float', type: 'number' }, }, required: [ 'metric', 'label', 'device_months', 'tokens', ], type: 'object', }, type: 'array', }, estimated_extra_cents: { format: 'float', type: 'number', }, extra_cents_per_token: { format: 'float', type: 'number', }, extra_tokens: { format: 'float', type: 'number' }, package_remaining_tokens: { format: 'float', type: 'number', }, package_tokens: { format: 'float', type: 'number' }, percent_used: { format: 'float', type: 'number' }, period_ends_at: { format: 'date-time', type: 'string', }, period_started_at: { format: 'date-time', type: 'string', }, remaining_tokens: { format: 'float', type: 'number', }, used_tokens: { format: 'float', type: 'number' }, }, required: [ 'as_of', 'period_started_at', 'period_ends_at', 'package_tokens', 'package_remaining_tokens', 'allowance_tokens', 'carried_tokens', 'carried_remaining_tokens', 'carried_credit_grants', 'remaining_tokens', 'used_tokens', 'extra_tokens', 'extra_cents_per_token', 'estimated_extra_cents', 'percent_used', 'breakdown', 'connectivity', ], type: 'object', }, }, required: [ 'is_test_mode', 'credit_subscription', 'trial', 'usage', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['credits', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'credits'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'credits', 'x-response-key': 'credits', 'x-title': "Get an Organization's Credits", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/invoices/list': { post: { description: "Lists the organization's most recent credit package invoices, newest first.", operationId: 'seamConsoleV1CreditsInvoicesListPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { invoices: { items: { properties: { hosted_invoice_url: { nullable: true, type: 'string', }, invoice_id: { type: 'string' }, issued_at: { format: 'date-time', type: 'string' }, kind: { enum: ['package', 'usage', 'other'], type: 'string', }, package_quantity: { format: 'float', nullable: true, type: 'number', }, period_ends_at: { format: 'date-time', type: 'string', }, period_started_at: { format: 'date-time', type: 'string', }, status: { type: 'string' }, total_cents: { format: 'float', type: 'number' }, }, required: [ 'invoice_id', 'period_started_at', 'period_ends_at', 'total_cents', 'status', 'hosted_invoice_url', 'issued_at', 'package_quantity', 'kind', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['invoices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/invoices/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'invoices', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'invoices', 'x-response-key': 'invoices', 'x-title': 'List Credit Invoices', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/packages/list': { post: { description: "Lists the purchasable monthly credit packages and the package recommended for the organization's trailing 30 days of usage.", operationId: 'seamConsoleV1CreditsPackagesListPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, packages: { items: { properties: { extra_cents_per_token: { format: 'float', type: 'number', }, included_cents_per_token: { format: 'float', type: 'number', }, package_quantity: { format: 'float', type: 'number' }, price_cents: { format: 'float', type: 'number' }, }, required: [ 'package_quantity', 'price_cents', 'included_cents_per_token', 'extra_cents_per_token', ], type: 'object', }, type: 'array', }, recommendation_basis: { properties: { is_projected_from_trial: { type: 'boolean' }, trailing_30_day_tokens: { format: 'float', nullable: true, type: 'number', }, }, required: [ 'trailing_30_day_tokens', 'is_projected_from_trial', ], type: 'object', }, recommended_package_quantity: { format: 'float', type: 'number', }, }, required: [ 'packages', 'recommended_package_quantity', 'recommendation_basis', 'ok', ], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/packages/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'packages', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'packages', 'x-response-key': 'packages', 'x-title': 'List Credit Packages', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/payment_method/confirm': { post: { description: "Finishes a payment method update after the Stripe Checkout returns: saves the card as the default, retries the open credit invoices and refreshes the subscription's payment status. Safe to call more than once.", operationId: 'seamConsoleV1CreditsPaymentMethodConfirmPost', requestBody: { content: { 'application/json': { schema: { properties: { checkout_session_id: { minLength: 1, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'checkout_session_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { credit_subscription: { nullable: true, properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number' }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: ['package_quantity', 'hosted_invoice_url'], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, ok: { type: 'boolean' }, paid_invoice_count: { format: 'float', type: 'number' }, unpaid_invoice_count: { format: 'float', type: 'number' }, }, required: [ 'credit_subscription', 'paid_invoice_count', 'unpaid_invoice_count', 'ok', ], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/payment_method/confirm', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'payment_method', ], 'x-fern-sdk-method-name': 'confirm', 'x-response-key': null, 'x-title': 'Confirm a Credit Payment Method Update', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/payment_method/update': { post: { description: "Starts a Stripe Checkout that saves a new default card for the organization's credit subscription. Open credit invoices are retried once the card is confirmed.", operationId: 'seamConsoleV1CreditsPaymentMethodUpdatePost', requestBody: { content: { 'application/json': { schema: { properties: { cancel_url: { format: 'uri', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, success_url: { format: 'uri', type: 'string' }, }, required: ['organization_id', 'success_url', 'cancel_url'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { checkout_url: { format: 'uri', type: 'string' }, ok: { type: 'boolean' }, }, required: ['checkout_url', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/payment_method/update', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'payment_method', ], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Start a Credit Payment Method Update', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/purchases/get': { post: { description: 'Advances a pending credit subscription purchase and returns its status, including whether its Stripe Checkout was left unfinished. Only organization admins receive the Checkout URL.', operationId: 'seamConsoleV1CreditsPurchasesGetPost', requestBody: { content: { 'application/json': { schema: { properties: { credit_subscription_id: { format: 'uuid', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'credit_subscription_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, purchase: { properties: { checkout_state: { enum: ['awaiting_checkout', 'processing'], nullable: true, type: 'string', }, checkout_url: { nullable: true, type: 'string' }, failure_reason: { nullable: true, type: 'string' }, hosted_invoice_url: { nullable: true, type: 'string' }, package_quantity: { format: 'float', type: 'number' }, status: { type: 'string' }, }, required: [ 'status', 'package_quantity', 'hosted_invoice_url', 'checkout_state', 'checkout_url', 'failure_reason', ], type: 'object', }, }, required: ['purchase', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/purchases/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'purchases', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'purchase', 'x-response-key': 'purchase', 'x-title': 'Get a Credit Purchase', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/subscription/cancel': { post: { description: "Cancels the organization's credit subscription at the end of its current period. The package stays available until then.", operationId: 'seamConsoleV1CreditsSubscriptionCancelPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { credit_subscription: { properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number' }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: ['package_quantity', 'hosted_invoice_url'], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['credit_subscription', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/subscription/cancel', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'subscription', ], 'x-fern-sdk-method-name': 'cancel', 'x-response-key': null, 'x-title': 'Cancel a Credit Subscription at Period End', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/subscription/change': { post: { description: 'Upgrades to a larger package immediately, charging its full price and carrying the unused credits over, or schedules a downgrade to a smaller package for the end of the current period.', operationId: 'seamConsoleV1CreditsSubscriptionChangePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, package_quantity: { exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, required: ['organization_id', 'package_quantity'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { change: { properties: { carried_credits: { format: 'float', nullable: true, type: 'number', }, hosted_invoice_url: { nullable: true, type: 'string' }, kind: { enum: ['upgrade', 'downgrade'], type: 'string', }, status: { enum: [ 'applied', 'scheduled', 'awaiting_authentication', 'processing', ], type: 'string', }, }, required: [ 'kind', 'status', 'hosted_invoice_url', 'carried_credits', ], type: 'object', }, credit_subscription: { properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number' }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: ['package_quantity', 'hosted_invoice_url'], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['credit_subscription', 'change', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/subscription/change', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'subscription', ], 'x-fern-sdk-method-name': 'change', 'x-response-key': null, 'x-title': "Change a Credit Subscription's Package", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/subscription/change/cancel': { post: { description: 'Undoes a package downgrade that has not taken effect yet, so the credit subscription keeps its current package.', operationId: 'seamConsoleV1CreditsSubscriptionChangeCancelPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { credit_subscription: { properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number' }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: ['package_quantity', 'hosted_invoice_url'], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['credit_subscription', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/subscription/change/cancel', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'subscription', 'change', ], 'x-fern-sdk-method-name': 'cancel', 'x-response-key': null, 'x-title': 'Cancel a Scheduled Credit Package Change', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/subscription/resume': { post: { description: 'Undoes a cancellation that has not taken effect yet, so the credit subscription renews at the end of its current period.', operationId: 'seamConsoleV1CreditsSubscriptionResumePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { credit_subscription: { properties: { canceled_at: { format: 'date-time', nullable: true, type: 'string', }, credit_subscription_id: { format: 'uuid', type: 'string', }, current_period_ends_at: { format: 'date-time', nullable: true, type: 'string', }, current_period_started_at: { format: 'date-time', nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number' }, past_due_since: { format: 'date-time', nullable: true, type: 'string', }, payment_failure: { nullable: true, properties: { amount_due_cents: { format: 'float', nullable: true, type: 'number', }, grace_ends_at: { format: 'date-time', type: 'string', }, }, required: ['grace_ends_at', 'amount_due_cents'], type: 'object', }, pending_upgrade: { nullable: true, properties: { hosted_invoice_url: { nullable: true, type: 'string', }, package_quantity: { format: 'float', type: 'number', }, }, required: ['package_quantity', 'hosted_invoice_url'], type: 'object', }, price_cents: { format: 'float', type: 'number' }, scheduled_change_at: { format: 'date-time', nullable: true, type: 'string', }, scheduled_package_quantity: { format: 'float', nullable: true, type: 'number', }, scheduled_price_cents: { format: 'float', nullable: true, type: 'number', }, status: { type: 'string' }, }, required: [ 'credit_subscription_id', 'status', 'package_quantity', 'price_cents', 'current_period_started_at', 'current_period_ends_at', 'past_due_since', 'payment_failure', 'canceled_at', 'scheduled_package_quantity', 'scheduled_price_cents', 'scheduled_change_at', 'pending_upgrade', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['credit_subscription', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/subscription/resume', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'credits', 'subscription', ], 'x-fern-sdk-method-name': 'resume', 'x-response-key': null, 'x-title': 'Resume a Canceled Credit Subscription', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/trial/extend': { post: { description: "Moves the end of the organization's credits trial 14 days later. The trial keeps the credits it already has. An organization can extend its trial once; Seam support can extend it further.", operationId: 'seamConsoleV1CreditsTrialExtendPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, trial: { properties: { can_extend_trial: { type: 'boolean' }, extended_trial_ends_at: { format: 'date-time', nullable: true, type: 'string', }, is_active: { type: 'boolean' }, is_credits_used_up: { type: 'boolean' }, is_suspended: { type: 'boolean' }, remaining_credits: { format: 'float', nullable: true, type: 'number', }, trial_credits: { format: 'float', type: 'number' }, trial_ends_at: { format: 'date-time', type: 'string' }, trial_started_at: { format: 'date-time', type: 'string', }, used_credits: { format: 'float', nullable: true, type: 'number', }, }, required: [ 'trial_started_at', 'trial_ends_at', 'is_active', 'is_suspended', 'trial_credits', 'used_credits', 'remaining_credits', 'is_credits_used_up', 'can_extend_trial', 'extended_trial_ends_at', ], type: 'object', }, }, required: ['trial', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/trial/extend', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'credits', 'trial'], 'x-fern-sdk-method-name': 'extend', 'x-fern-sdk-return-value': 'trial', 'x-response-key': 'trial', 'x-title': "Extend an Organization's Credits Trial", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/credits/usage/get': { post: { description: "Returns the organization's credit usage for the current subscription period (or the trailing 30 days without a subscription), broken down by workspace, by action and by day.", operationId: 'seamConsoleV1CreditsUsageGetPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, usage: { properties: { allowance: { nullable: true, properties: { allowance_tokens: { format: 'float', type: 'number', }, carried_credit_grants: { items: { properties: { expires_at: { format: 'date-time', type: 'string', }, remaining_tokens: { format: 'float', type: 'number', }, tokens: { format: 'float', type: 'number' }, }, required: [ 'tokens', 'remaining_tokens', 'expires_at', ], type: 'object', }, type: 'array', }, carried_remaining_tokens: { format: 'float', type: 'number', }, carried_tokens: { format: 'float', type: 'number' }, package_remaining_tokens: { format: 'float', type: 'number', }, remaining_tokens: { format: 'float', type: 'number', }, }, required: [ 'package_remaining_tokens', 'allowance_tokens', 'carried_tokens', 'carried_remaining_tokens', 'carried_credit_grants', 'remaining_tokens', ], type: 'object', }, as_of: { format: 'date-time', type: 'string' }, by_category: { items: { properties: { credits: { format: 'float', type: 'number' }, credits_per_unit: { format: 'float', type: 'number', }, key: { type: 'string' }, kind: { enum: ['connectivity', 'action'], type: 'string', }, label: { type: 'string' }, percent_of_total: { format: 'float', type: 'number', }, quantity: { format: 'float', type: 'number' }, }, required: [ 'kind', 'key', 'label', 'quantity', 'credits_per_unit', 'credits', 'percent_of_total', ], type: 'object', }, nullable: true, type: 'array', }, by_workspace: { items: { properties: { actions: { items: { properties: { billable_action: { type: 'string' }, count: { format: 'float', type: 'number' }, credits: { format: 'float', type: 'number', }, label: { type: 'string' }, }, required: [ 'billable_action', 'label', 'count', 'credits', ], type: 'object', }, type: 'array', }, connectivity: { items: { properties: { credits: { format: 'float', type: 'number', }, credits_per_device_month: { format: 'float', type: 'number', }, device_months: { format: 'float', type: 'number', }, label: { type: 'string' }, metric: { type: 'string' }, }, required: [ 'metric', 'label', 'device_months', 'credits_per_device_month', 'credits', ], type: 'object', }, type: 'array', }, credits: { format: 'float', type: 'number' }, percent_of_total: { format: 'float', type: 'number', }, workspace_id: { nullable: true, type: 'string' }, workspace_name: { nullable: true, type: 'string', }, }, required: [ 'workspace_id', 'workspace_name', 'connectivity', 'actions', 'credits', 'percent_of_total', ], type: 'object', }, nullable: true, type: 'array', }, daily: { items: { properties: { action_credits: { format: 'float', type: 'number', }, connectivity_credits: { format: 'float', type: 'number', }, date: { type: 'string' }, previous_period_credits: { format: 'float', nullable: true, type: 'number', }, }, required: [ 'date', 'connectivity_credits', 'action_credits', 'previous_period_credits', ], type: 'object', }, nullable: true, type: 'array', }, is_daily_connectivity_included: { type: 'boolean' }, package_credits: { format: 'float', nullable: true, type: 'number', }, period_ends_at: { format: 'date-time', type: 'string' }, period_started_at: { format: 'date-time', type: 'string', }, source: { enum: ['metronome', 'estimate'], type: 'string', }, used_credits: { format: 'float', nullable: true, type: 'number', }, }, required: [ 'source', 'as_of', 'period_started_at', 'period_ends_at', 'package_credits', 'allowance', 'used_credits', 'by_workspace', 'by_category', 'daily', 'is_daily_connectivity_included', ], type: 'object', }, }, required: ['usage', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/credits/usage/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'credits', 'usage'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'usage', 'x-response-key': 'usage', 'x-title': "Get an Organization's Credit Usage in Detail", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/customer_portals/list': { get: { description: 'Lists the most recent customer portal for each customer in the workspace.', operationId: 'seamConsoleV1CustomerPortalsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { minLength: 1, type: 'string' }, }, { in: 'query', name: 'limit', schema: { default: 25, maximum: 100, minimum: 1, type: 'integer' }, }, { in: 'query', name: 'page_cursor', schema: { type: 'string' } }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customer_portals: { items: { properties: { created_at: { format: 'date-time', type: 'string' }, customer_key: { minLength: 1, type: 'string' }, customer_portal_id: { format: 'uuid', type: 'string', }, expires_at: { format: 'date-time', nullable: true, type: 'string', }, is_reopenable: { type: 'boolean' }, }, required: [ 'customer_portal_id', 'customer_key', 'created_at', 'expires_at', 'is_reopenable', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['customer_portals', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { console_session_with_workspace: [] }, { pat_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/customer_portals/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'customer_portals'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'customer_portals', 'x-response-key': 'customer_portals', 'x-title': 'List Customer Portals', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/console/v1/get_resource_locator': { get: { description: 'Returns the type and system information of a resource given its UUID.', operationId: 'seamConsoleV1GetResourceLocatorGet', parameters: [ { in: 'query', name: 'uuid', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, resource_locator: { properties: { acs_system_id: { format: 'uuid', type: 'string' }, device_id: { format: 'uuid', type: 'string' }, resource_type: { type: 'string' }, }, required: ['resource_type'], type: 'object', }, }, required: ['resource_locator', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/get_resource_locator', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1'], 'x-fern-sdk-method-name': 'get_resource_locator', 'x-fern-sdk-return-value': 'resource_locator', 'x-response-key': 'resource_locator', 'x-title': 'Get Resource Locator', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/lynx_migration/get_property_migration_status': { get: { description: 'Returns the most recent Lynx cutover run for a property (space), including a\nrollup of its per-reservation child runs by status. Returns a null run when the\nproperty has never been migrated.', operationId: 'seamConsoleV1LynxMigrationGetPropertyMigrationStatusGet', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space (property) to get the migration status for.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { lynx_migration_property_run: { nullable: true, properties: { child_status_counts: { additionalProperties: { format: 'float', type: 'number', }, type: 'object', }, created_at: { type: 'string' }, lynx_migration_property_run_id: { format: 'uuid', type: 'string', }, space_id: { format: 'uuid', type: 'string' }, status: { type: 'string' }, updated_at: { type: 'string' }, }, required: [ 'lynx_migration_property_run_id', 'space_id', 'status', 'created_at', 'updated_at', 'child_status_counts', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['lynx_migration_property_run', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/lynx_migration/get_property_migration_status', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'lynx_migration'], 'x-fern-sdk-method-name': 'get_property_migration_status', 'x-fern-sdk-return-value': 'lynx_migration_property_run', 'x-response-key': 'lynx_migration_property_run', 'x-title': 'Get Lynx Migration Property Status', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/lynx_migration/get_reservation_migration_status': { get: { description: 'Returns the most recent per-reservation Lynx cutover run for an access grant.\nReturns a null run when the reservation has never been migrated. Keyed by\naccess_grant_id — a successful cutover deletes the access grant, but the run\nrecord outlives it, so status remains available after the migration completes.\n\nIncludes the codes the cutover deleted (snapshotted before deletion, so the\nhistory survives the hard-delete) and each connected-account sync it requested.', operationId: 'seamConsoleV1LynxMigrationGetReservationMigrationStatusGet', parameters: [ { in: 'query', name: 'access_grant_id', required: true, schema: { description: 'ID of the access grant (reservation) to get the migration status for.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { lynx_migration_reservation_run: { nullable: true, properties: { access_grant_id: { format: 'uuid', type: 'string' }, account_sync_requests: { items: { properties: { at: { type: 'string' }, connected_account_ids: { items: { format: 'uuid', type: 'string' }, type: 'array', }, phase: { type: 'string' }, }, required: ['at', 'phase', 'connected_account_ids'], type: 'object', }, type: 'array', }, created_at: { type: 'string' }, deleted_codes: { items: { properties: { access_code_id: { format: 'uuid', type: 'string', }, code: { nullable: true, type: 'string' }, device_id: { format: 'uuid', nullable: true, type: 'string', }, ends_at: { nullable: true, type: 'string' }, is_managed: { type: 'boolean' }, name: { nullable: true, type: 'string' }, origin: { type: 'string' }, starts_at: { nullable: true, type: 'string' }, type: { nullable: true, type: 'string' }, }, required: [ 'access_code_id', 'code', 'name', 'is_managed', 'device_id', 'type', 'starts_at', 'ends_at', 'origin', ], type: 'object', }, type: 'array', }, lynx_migration_run_id: { format: 'uuid', type: 'string', }, status: { type: 'string' }, updated_at: { type: 'string' }, }, required: [ 'lynx_migration_run_id', 'access_grant_id', 'status', 'created_at', 'updated_at', 'deleted_codes', 'account_sync_requests', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['lynx_migration_reservation_run', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/lynx_migration/get_reservation_migration_status', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'lynx_migration'], 'x-fern-sdk-method-name': 'get_reservation_migration_status', 'x-fern-sdk-return-value': 'lynx_migration_reservation_run', 'x-response-key': 'lynx_migration_reservation_run', 'x-title': 'Get Lynx Migration Reservation Status', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/lynx_migration/list_property_reservations': { get: { description: 'Lists the reservations in a property (space) and classifies each for a Lynx\ncutover: which are eligible to migrate to Seam-managed access, and which are\nskipped (with a reason). Read-only — does not start a migration.', operationId: 'seamConsoleV1LynxMigrationListPropertyReservationsGet', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space (property) to plan a Lynx migration for.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { lynx_migration_property_plan: { properties: { eligible: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, guest_name: { nullable: true, type: 'string' }, }, required: ['access_grant_id', 'guest_name'], type: 'object', }, type: 'array', }, eligible_count: { format: 'float', type: 'number' }, skipped: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, guest_name: { nullable: true, type: 'string' }, reason: { nullable: true, type: 'string' }, }, required: [ 'access_grant_id', 'guest_name', 'reason', ], type: 'object', }, type: 'array', }, space_id: { format: 'uuid', type: 'string' }, total: { format: 'float', type: 'number' }, }, required: [ 'space_id', 'total', 'eligible_count', 'eligible', 'skipped', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['lynx_migration_property_plan', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/lynx_migration/list_property_reservations', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'lynx_migration'], 'x-fern-sdk-method-name': 'list_property_reservations', 'x-fern-sdk-return-value': 'lynx_migration_property_plan', 'x-response-key': 'lynx_migration_property_plan', 'x-title': 'List Lynx Migration Property Reservations', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/lynx_migration/migrate_property': { post: { description: 'Starts a Lynx cutover for a property (space): schedules a background task that\nplans the eligible reservations and migrates them to Seam-managed access a\nbounded number at a time. Idempotent — if a migration is already running for\nthe property, returns that run with `already_running: true`. Poll\n`/seam/console/v1/lynx_migration/get_property_migration_status` for progress.', operationId: 'seamConsoleV1LynxMigrationMigratePropertyPost', requestBody: { content: { 'application/json': { schema: { properties: { space_id: { description: 'ID of the space (property) to migrate.', format: 'uuid', type: 'string', }, }, required: ['space_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { lynx_migration_property_run: { properties: { already_running: { type: 'boolean' }, lynx_migration_property_run_id: { format: 'uuid', type: 'string', }, space_id: { format: 'uuid', type: 'string' }, status: { type: 'string' }, }, required: [ 'lynx_migration_property_run_id', 'space_id', 'status', 'already_running', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['lynx_migration_property_run', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/lynx_migration/migrate_property', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'lynx_migration'], 'x-fern-sdk-method-name': 'migrate_property', 'x-fern-sdk-return-value': 'lynx_migration_property_run', 'x-response-key': 'lynx_migration_property_run', 'x-title': 'Migrate a Property to Seam-Managed Access', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/create': { post: { description: 'Creates an organization.', operationId: 'seamConsoleV1OrganizationsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { logo_image_base64: { type: 'string' }, name: { maxLength: 255, minLength: 1, type: 'string' }, }, required: ['name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', ], type: 'object', }, }, required: ['organization', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/create', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'organization', 'x-response-key': 'organization', 'x-title': 'Create an Organization', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/customization_profiles/copy': { post: { description: 'Copies a customization profile to an organization.', operationId: 'seamConsoleV1OrganizationsCustomizationProfilesCopyPost', requestBody: { content: { 'application/json': { schema: { properties: { destination_customization_profile_id: { format: 'uuid', type: 'string', }, destination_workspace_id: { format: 'uuid', type: 'string' }, source_customization_profile_id: { format: 'uuid', type: 'string', }, source_workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'source_workspace_id', 'source_customization_profile_id', 'destination_workspace_id', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { customization_profile: { $ref: '#/components/schemas/customization_profile', }, ok: { type: 'boolean' }, }, required: ['customization_profile', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/customization_profiles/copy', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'customization_profiles', ], 'x-fern-sdk-method-name': 'copy', 'x-fern-sdk-return-value': 'customization_profile', 'x-response-key': 'customization_profile', 'x-title': 'Copy a Customization Profile', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/delete': { post: { description: 'Deletes an organization.', operationId: 'seamConsoleV1OrganizationsDeletePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', ], type: 'object', }, }, required: ['organization', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/delete', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'delete', 'x-fern-sdk-return-value': 'organization', 'x-response-key': 'organization', 'x-title': 'Delete an Organization', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/get': { get: { description: 'Returns a specified organization.', operationId: 'seamConsoleV1OrganizationsGetGet', parameters: [ { in: 'query', name: 'organization_id', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { members: { items: { properties: { created_at: { format: 'date-time', type: 'string' }, email: { nullable: true, type: 'string' }, first_name: { nullable: true, type: 'string' }, last_name: { nullable: true, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_member_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, user_id: { format: 'uuid', type: 'string' }, }, required: [ 'organization_member_id', 'organization_id', 'user_id', 'email', 'first_name', 'last_name', 'role', 'created_at', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, organization: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', ], type: 'object', }, pending_invitations: { items: { properties: { email: { type: 'string' }, expires_at: { format: 'date-time', type: 'string' }, invited_at: { format: 'date-time', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_invitation_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, status: { enum: ['pending', 'accepted', 'revoked'], type: 'string', }, }, required: [ 'organization_invitation_id', 'organization_id', 'email', 'role', 'status', 'invited_at', 'expires_at', ], type: 'object', }, type: 'array', }, workspaces: { items: { $ref: '#/components/schemas/workspace' }, type: 'array', }, }, required: [ 'organization', 'members', 'pending_invitations', 'workspaces', 'ok', ], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'organization', 'x-response-key': 'organization', 'x-title': 'Get an Organization', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/invitations/revoke': { post: { description: 'Revokes an organization invitation.', operationId: 'seamConsoleV1OrganizationsInvitationsRevokePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_invitation_id: { format: 'uuid', type: 'string', }, }, required: ['organization_invitation_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization_invitation: { properties: { email: { type: 'string' }, expires_at: { format: 'date-time', type: 'string' }, invited_at: { format: 'date-time', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_invitation_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, status: { enum: ['pending', 'accepted', 'revoked'], type: 'string', }, }, required: [ 'organization_invitation_id', 'organization_id', 'email', 'role', 'status', 'invited_at', 'expires_at', ], type: 'object', }, }, required: ['organization_invitation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/invitations/revoke', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'invitations', ], 'x-fern-sdk-method-name': 'revoke', 'x-fern-sdk-return-value': 'organization_invitation', 'x-response-key': 'organization_invitation', 'x-title': 'Revoke an Organization Invitation', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/list': { get: { description: 'Returns a list of organizations.', operationId: 'seamConsoleV1OrganizationsListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organizations: { items: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, member_count: { format: 'float', type: 'number' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, workspace_count: { format: 'float', type: 'number' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', 'workspace_count', 'member_count', ], type: 'object', }, type: 'array', }, }, required: ['organizations', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'organizations', 'x-response-key': 'organizations', 'x-title': 'List Organizations', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/add': { post: { description: 'Adds a member to an organization, inviting them by email if needed.', operationId: 'seamConsoleV1OrganizationsMembersAddPost', requestBody: { content: { 'application/json': { schema: { properties: { email: { format: 'email', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, role: { default: 'member', enum: ['admin', 'member'], type: 'string', }, }, required: ['organization_id', 'email'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization_invitation: { properties: { email: { type: 'string' }, expires_at: { format: 'date-time', type: 'string' }, invited_at: { format: 'date-time', type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_invitation_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, status: { enum: ['pending', 'accepted', 'revoked'], type: 'string', }, }, required: [ 'organization_invitation_id', 'organization_id', 'email', 'role', 'status', 'invited_at', 'expires_at', ], type: 'object', }, organization_member: { properties: { created_at: { format: 'date-time', type: 'string' }, email: { nullable: true, type: 'string' }, first_name: { nullable: true, type: 'string' }, last_name: { nullable: true, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_member_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, user_id: { format: 'uuid', type: 'string' }, }, required: [ 'organization_member_id', 'organization_id', 'user_id', 'email', 'first_name', 'last_name', 'role', 'created_at', ], type: 'object', }, }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/add', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', ], 'x-fern-sdk-method-name': 'add', 'x-response-key': null, 'x-title': 'Add an Organization Member', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/remove': { post: { description: 'Removes a member from an organization.', operationId: 'seamConsoleV1OrganizationsMembersRemovePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, user_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'user_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/remove', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', ], 'x-fern-sdk-method-name': 'remove', 'x-response-key': null, 'x-title': 'Remove an Organization Member', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/update': { post: { description: 'Updates a member of an organization.', operationId: 'seamConsoleV1OrganizationsMembersUpdatePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, role: { enum: ['admin', 'member'], type: 'string' }, user_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'user_id', 'role'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization_member: { properties: { created_at: { format: 'date-time', type: 'string' }, email: { nullable: true, type: 'string' }, first_name: { nullable: true, type: 'string' }, last_name: { nullable: true, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, organization_member_id: { format: 'uuid', type: 'string', }, role: { enum: ['admin', 'member'], type: 'string' }, user_id: { format: 'uuid', type: 'string' }, }, required: [ 'organization_member_id', 'organization_id', 'user_id', 'email', 'first_name', 'last_name', 'role', 'created_at', ], type: 'object', }, }, required: ['organization_member', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/update', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', ], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'organization_member', 'x-response-key': 'organization_member', 'x-title': 'Update an Organization Member', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/workspaces/grant': { post: { description: 'Grants an organization member access to a workspace.', operationId: 'seamConsoleV1OrganizationsMembersWorkspacesGrantPost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, user_id: { format: 'uuid', type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'user_id', 'workspace_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/workspaces/grant', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', 'workspaces', ], 'x-fern-sdk-method-name': 'grant', 'x-response-key': null, 'x-title': 'Grant an Organization Member Workspace Access', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/workspaces/list': { get: { description: 'Returns the workspaces an organization member can access.', operationId: 'seamConsoleV1OrganizationsMembersWorkspacesListGet', parameters: [ { in: 'query', name: 'organization_id', required: true, schema: { format: 'uuid', type: 'string' }, }, { in: 'query', name: 'user_id', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspaces: { items: { properties: { created_at: { format: 'date-time', type: 'string' }, is_owner: { type: 'boolean' }, is_sandbox: { type: 'boolean' }, name: { type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'workspace_id', 'name', 'is_sandbox', 'is_owner', 'created_at', ], type: 'object', }, type: 'array', }, }, required: ['workspaces', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/workspaces/list', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', 'workspaces', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'workspaces', 'x-response-key': 'workspaces', 'x-title': "List an Organization Member's Workspaces", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/members/workspaces/revoke': { post: { description: "Revokes an organization member's access to a workspace.", operationId: 'seamConsoleV1OrganizationsMembersWorkspacesRevokePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, user_id: { format: 'uuid', type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'user_id', 'workspace_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/members/workspaces/revoke', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'members', 'workspaces', ], 'x-fern-sdk-method-name': 'revoke', 'x-response-key': null, 'x-title': "Revoke an Organization Member's Workspace Access", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/update': { patch: { description: 'Updates an organization.', operationId: 'seamConsoleV1OrganizationsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string' }, primary_button_text_color: { nullable: true, type: 'string', }, }, type: 'object', }, logo_image_base64: { nullable: true, type: 'string' }, name: { maxLength: 255, minLength: 1, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', ], type: 'object', }, }, required: ['organization', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'organization', 'x-response-key': 'organization', 'x-title': 'Update an Organization', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/upload_logo': { post: { description: 'Uploads a logo image for an organization.', operationId: 'seamConsoleV1OrganizationsUploadLogoPost', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, organization: { properties: { connect_webview_customization: { properties: { logo_shape: { enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { nullable: true, type: 'string', }, primary_button_text_color: { nullable: true, type: 'string', }, }, required: [ 'primary_button_color', 'primary_button_text_color', 'logo_shape', ], type: 'object', }, created_at: { format: 'date-time', type: 'string' }, logo_url: { nullable: true, type: 'string' }, name: { type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, updated_at: { format: 'date-time', type: 'string' }, }, required: [ 'organization_id', 'name', 'logo_url', 'connect_webview_customization', 'created_at', 'updated_at', ], type: 'object', }, }, required: ['organization', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/upload_logo', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'organizations'], 'x-fern-sdk-method-name': 'upload_logo', 'x-fern-sdk-return-value': 'organization', 'x-response-key': 'organization', 'x-title': 'Upload an Organization Logo', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/workspaces/create': { post: { description: 'Creates a workspace in an organization.', operationId: 'seamConsoleV1OrganizationsWorkspacesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { is_sandbox: { default: false, type: 'boolean' }, name: { minLength: 1, type: 'string' }, organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id', 'name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspace: { $ref: '#/components/schemas/workspace' }, }, required: ['workspace', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/workspaces/create', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'workspaces', ], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'workspace', 'x-response-key': 'workspace', 'x-title': 'Create an Organization Workspace', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/workspaces/remove': { post: { description: 'Removes a workspace from an organization.', operationId: 'seamConsoleV1OrganizationsWorkspacesRemovePost', requestBody: { content: { 'application/json': { schema: { properties: { workspace_id: { format: 'uuid', type: 'string' }, }, required: ['workspace_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/workspaces/remove', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'workspaces', ], 'x-fern-sdk-method-name': 'remove', 'x-response-key': null, 'x-title': 'Remove an Organization Workspace', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/organizations/workspaces/update': { post: { description: 'Updates a workspace in an organization.', operationId: 'seamConsoleV1OrganizationsWorkspacesUpdatePost', requestBody: { content: { 'application/json': { schema: { properties: { name: { minLength: 1, type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, }, required: ['workspace_id', 'name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspace: { $ref: '#/components/schemas/workspace' }, }, required: ['workspace', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/organizations/workspaces/update', tags: ['/workspaces'], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'organizations', 'workspaces', ], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'workspace', 'x-response-key': 'workspace', 'x-title': 'Update an Organization Workspace', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/referrals/code/create': { post: { description: "Creates the organization's referral code if it has none, and returns the referral program. Calling it again returns the same code.", operationId: 'seamConsoleV1ReferralsCodeCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { organization_id: { format: 'uuid', type: 'string' }, }, required: ['organization_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, referral_program: { properties: { is_available: { description: 'Whether the referral program is available to the organization.', type: 'boolean', }, referral_code: { description: "The organization's referral code, or null if it has none yet.", nullable: true, type: 'string', }, referred_signup_count: { description: "Number of signups that used the organization's referral code.", type: 'integer', }, }, required: [ 'is_available', 'referral_code', 'referred_signup_count', ], type: 'object', }, }, required: ['referral_program', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/referrals/code/create', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'referrals', 'code'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'referral_program', 'x-response-key': 'referral_program', 'x-title': "Create an Organization's Referral Code", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/referrals/get': { get: { description: 'Returns whether the referral program is available to the organization, its referral code if it has one, and how many signups used that code.', operationId: 'seamConsoleV1ReferralsGetGet', parameters: [ { in: 'query', name: 'organization_id', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, referral_program: { properties: { is_available: { description: 'Whether the referral program is available to the organization.', type: 'boolean', }, referral_code: { description: "The organization's referral code, or null if it has none yet.", nullable: true, type: 'string', }, referred_signup_count: { description: "Number of signups that used the organization's referral code.", type: 'integer', }, }, required: [ 'is_available', 'referral_code', 'referred_signup_count', ], type: 'object', }, }, required: ['referral_program', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_without_workspace: [] }], summary: '/seam/console/v1/referrals/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'referrals'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'referral_program', 'x-response-key': 'referral_program', 'x-title': "Get an Organization's Referral Program", 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/sites/create': { post: { description: 'Creates a new site, a top-level space in the property hierarchy.', operationId: 'seamConsoleV1SitesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { name: { description: 'Name of the site that you want to create.', type: 'string', }, site_key: { description: 'Unique key for the site within the workspace.', minLength: 1, type: 'string', }, }, required: ['name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, site: { $ref: '#/components/schemas/space' }, }, required: ['site', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/sites/create', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'sites'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'site', 'x-response-key': 'site', 'x-title': 'Create a Site', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/sites/delete': { delete: { description: 'Deletes a site.', operationId: 'seamConsoleV1SitesDeleteDelete', parameters: [ { in: 'query', name: 'site_id', required: true, schema: { description: 'ID of the site that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/sites/delete', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'sites'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Site', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/sites/list': { get: { description: 'Lists sites (top-level spaces) in the workspace.', operationId: 'seamConsoleV1SitesListGet', parameters: [ { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters sites to those with a partial match on `name` or `site_key`.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, sites: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, }, required: ['sites', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/sites/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'sites'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'sites', 'x-response-key': 'sites', 'x-title': 'List Sites', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/sites/update': { patch: { description: 'Updates an existing site.', operationId: 'seamConsoleV1SitesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { name: { description: 'New name for the site.', type: 'string', }, site_id: { description: 'ID of the site that you want to update.', format: 'uuid', type: 'string', }, site_key: { description: 'New unique key for the site within the workspace.', minLength: 1, type: 'string', }, }, required: ['site_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, site: { $ref: '#/components/schemas/space' }, }, required: ['site', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/sites/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'sites'], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'site', 'x-response-key': 'site', 'x-title': 'Update a Site', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/timelines/get': { get: { description: 'Returns timeline entries for a resource and its child resources, grouped by entry groups.', operationId: 'seamConsoleV1TimelinesGetGet', parameters: [ { in: 'query', name: 'resource_id', required: true, schema: { description: 'ID of the resource to get timelines for.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', required: false, schema: { default: 50, description: 'Maximum number of timeline entry groups to return per page. Maximum 100.', exclusiveMinimum: true, maximum: 100, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', required: false, schema: { description: 'Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'created_after', required: false, schema: { description: 'Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'created_between', required: false, schema: { description: 'Time range to filter timeline entries. Returns entries created between the two timestamps [start, end].', items: { format: 'date-time', type: 'string' }, maxItems: 2, minItems: 2, type: 'array', }, }, { in: 'query', name: 'entry_types', required: false, schema: { description: 'Filter timeline entries by entry type. If not specified, all entry types are returned.', items: { enum: [ 'resource_created', 'resource_updated', 'resource_deleted', 'event', 'provider_call', 'automation_run', 'webhook_processed', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'context_type', required: false, schema: { description: "Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs.", enum: ['request', 'job'], type: 'string', }, }, { in: 'query', name: 'page_cursor', required: false, schema: { description: 'Identifies the specific page of results to return. Specify `null` or omit this parameter to return the first page.', nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { description: 'Information about the current page of results.', properties: { has_next_page: { description: 'Indicates whether there is another page of results after this one.', type: 'boolean', }, next_page_cursor: { description: 'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.', nullable: true, type: 'string', }, next_page_url: { description: 'URL to get the next page of results.', format: 'uri', nullable: true, type: 'string', }, page_size: { description: 'Number of items per page', type: 'integer', }, total_count: { description: 'Total number of timeline entry groups', type: 'integer', }, }, required: [ 'next_page_cursor', 'has_next_page', 'next_page_url', 'total_count', 'page_size', ], type: 'object', }, timeline: { properties: { groups: { items: { properties: { context: { oneOf: [ { properties: { context_type: { enum: ['request'], type: 'string', }, request_id: { type: 'string' }, request_payload: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, response_payload: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, }, required: [ 'context_type', 'request_id', 'request_payload', 'response_payload', ], type: 'object', }, { properties: { context_type: { enum: ['job'], type: 'string', }, job_id: { type: 'string' }, }, required: ['context_type', 'job_id'], type: 'object', }, ], }, created_at: { type: 'string' }, entries: { items: { properties: { body: { oneOf: [ { properties: { description: { type: 'string' }, entry_type: { enum: ['resource_created'], type: 'string', }, }, required: [ 'entry_type', 'description', ], type: 'object', }, { properties: { description: { type: 'string' }, entry_type: { enum: ['resource_updated'], type: 'string', }, errors: { items: { type: 'string' }, type: 'array', }, properties_before: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, properties_updated: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, warnings: { items: { type: 'string' }, type: 'array', }, }, required: [ 'entry_type', 'description', ], type: 'object', }, { properties: { description: { type: 'string' }, entry_type: { enum: ['resource_deleted'], type: 'string', }, }, required: [ 'entry_type', 'description', ], type: 'object', }, { properties: { entry_type: { enum: ['event'], type: 'string', }, event_id: { type: 'string' }, event_type: { type: 'string' }, }, required: [ 'entry_type', 'event_type', 'event_id', ], type: 'object', }, { properties: { description: { type: 'string' }, entry_type: { enum: ['provider_call'], type: 'string', }, response_body: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, response_status_code: { format: 'float', type: 'number', }, }, required: [ 'entry_type', 'description', 'response_status_code', ], type: 'object', }, { properties: { duration_ms: { format: 'float', type: 'number', }, entry_type: { enum: ['automation_run'], type: 'string', }, error_message: { type: 'string' }, rule_name: { type: 'string' }, skip_reason: { type: 'string' }, status: { enum: [ 'started', 'completed', 'failed', 'skipped', ], type: 'string', }, }, required: [ 'entry_type', 'rule_name', 'status', ], type: 'object', }, { properties: { connector_type: { type: 'string' }, entry_type: { enum: ['webhook_processed'], type: 'string', }, error_message: { type: 'string' }, event_type: { type: 'string' }, parsed_event: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, raw_payload: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, skip_reason: { type: 'string' }, status: { enum: [ 'processed', 'skipped', 'failed', ], type: 'string', }, }, required: [ 'entry_type', 'connector_type', 'event_type', 'status', ], type: 'object', }, ], }, created_at: { type: 'string' }, entry_type: { type: 'string' }, resource_id: { type: 'string' }, resource_type: { type: 'string' }, }, required: [ 'resource_type', 'resource_id', 'entry_type', 'body', 'created_at', ], type: 'object', }, type: 'array', }, }, required: ['context', 'entries', 'created_at'], type: 'object', }, type: 'array', }, resource_id: { type: 'string' }, resource_type: { type: 'string' }, }, required: ['resource_type', 'resource_id', 'groups'], type: 'object', }, }, required: ['timeline', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/console/v1/timelines/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'timelines'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'timeline', 'x-response-key': 'timeline', 'x-title': 'Get Timeline Entries', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/console_settings/get': { get: { description: "Gets the signed-in user's console settings for the workspace: the sidebar shortcuts and pinned resources, in order, the customer the console was last scoped to, how the console assistant carries out actions, and the access list it opens.", operationId: 'seamConsoleV1WorkspaceConsoleSettingsGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { console_settings: { properties: { access_list_page: { description: "Access list the console's Access opens: the one last used. `null` opens access grants.", enum: ['access_grants', 'access_codes'], nullable: true, type: 'string', }, assistant_mode: { description: 'How the console assistant carries out actions. `null` asks each time.', enum: ['show_me', 'do_it'], nullable: true, type: 'string', }, pinned_resources: { description: 'Resources pinned in the console sidebar, in order.', items: { properties: { display_name: { description: 'Name shown in the sidebar, as it was when pinned.', type: 'string', }, resource_id: { type: 'string' }, resource_type: { enum: [ 'device', 'space', 'access_grant', 'access_code', 'reservation', 'user_identity', 'connected_account', 'acs_system', ], type: 'string', }, }, required: [ 'resource_type', 'resource_id', 'display_name', ], type: 'object', }, maxItems: 100, type: 'array', }, selected_customer_key: { description: 'Customer the console was last scoped to. `null` means all customers.', nullable: true, type: 'string', }, sidebar_shortcuts: { description: 'Pages shown as shortcuts in the console sidebar, in order.', items: { type: 'string' }, maxItems: 100, type: 'array', }, }, type: 'object', }, ok: { type: 'boolean' }, }, required: ['console_settings', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/console_settings/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'workspace', 'console_settings', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'console_settings', 'x-response-key': 'console_settings', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/console_settings/update': { patch: { description: "Updates the signed-in user's console settings for the workspace. Only the settings you pass change.", operationId: 'seamConsoleV1WorkspaceConsoleSettingsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_list_page: { description: "Access list the console's Access opens: the one last used. `null` opens access grants.", enum: ['access_grants', 'access_codes'], nullable: true, type: 'string', }, assistant_mode: { description: 'How the console assistant carries out actions. `null` asks each time.', enum: ['show_me', 'do_it'], nullable: true, type: 'string', }, pinned_resources: { description: 'Resources pinned in the console sidebar, in order.', items: { properties: { display_name: { description: 'Name shown in the sidebar, as it was when pinned.', type: 'string', }, resource_id: { type: 'string' }, resource_type: { enum: [ 'device', 'space', 'access_grant', 'access_code', 'reservation', 'user_identity', 'connected_account', 'acs_system', ], type: 'string', }, }, required: [ 'resource_type', 'resource_id', 'display_name', ], type: 'object', }, maxItems: 100, type: 'array', }, selected_customer_key: { description: 'Customer the console was last scoped to. `null` means all customers.', nullable: true, type: 'string', }, sidebar_shortcuts: { description: 'Pages shown as shortcuts in the console sidebar, in order.', items: { type: 'string' }, maxItems: 100, type: 'array', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { console_settings: { properties: { access_list_page: { description: "Access list the console's Access opens: the one last used. `null` opens access grants.", enum: ['access_grants', 'access_codes'], nullable: true, type: 'string', }, assistant_mode: { description: 'How the console assistant carries out actions. `null` asks each time.', enum: ['show_me', 'do_it'], nullable: true, type: 'string', }, pinned_resources: { description: 'Resources pinned in the console sidebar, in order.', items: { properties: { display_name: { description: 'Name shown in the sidebar, as it was when pinned.', type: 'string', }, resource_id: { type: 'string' }, resource_type: { enum: [ 'device', 'space', 'access_grant', 'access_code', 'reservation', 'user_identity', 'connected_account', 'acs_system', ], type: 'string', }, }, required: [ 'resource_type', 'resource_id', 'display_name', ], type: 'object', }, maxItems: 100, type: 'array', }, selected_customer_key: { description: 'Customer the console was last scoped to. `null` means all customers.', nullable: true, type: 'string', }, sidebar_shortcuts: { description: 'Pages shown as shortcuts in the console sidebar, in order.', items: { type: 'string' }, maxItems: 100, type: 'array', }, }, type: 'object', }, ok: { type: 'boolean' }, }, required: ['console_settings', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/console_settings/update', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'workspace', 'console_settings', ], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'console_settings', 'x-response-key': 'console_settings', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/feature_flags/list': { get: { description: 'Lists the workspace feature flags the Console reads.', operationId: 'seamConsoleV1WorkspaceFeatureFlagsListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { feature_flags: { additionalProperties: { type: 'boolean' }, type: 'object', }, ok: { type: 'boolean' }, }, required: ['feature_flags', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/feature_flags/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'console', 'v1', 'workspace', 'feature_flags', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'feature_flags', 'x-response-key': 'feature_flags', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/get_summary': { get: { description: 'Returns the device and access code counts shown on the Console home page.', operationId: 'seamConsoleV1WorkspaceGetSummaryGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to summarize the workspace.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspace_summary: { properties: { access_code_delivery_7d: { properties: { delivered_count: { type: 'integer' }, failed_count: { type: 'integer' }, }, required: ['delivered_count', 'failed_count'], type: 'object', }, active_access_code_count: { type: 'integer' }, device_count: { type: 'integer' }, devices_needing_attention_count: { type: 'integer' }, online_device_count: { type: 'integer' }, }, required: [ 'device_count', 'online_device_count', 'devices_needing_attention_count', 'active_access_code_count', 'access_code_delivery_7d', ], type: 'object', }, }, required: ['workspace_summary', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/get_summary', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'workspace'], 'x-fern-sdk-method-name': 'get_summary', 'x-fern-sdk-return-value': 'workspace_summary', 'x-response-key': 'workspace_summary', 'x-title': 'Get Workspace Summary', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/list_access_codes_for_today': { get: { description: "Lists the managed time-bound access codes that start, and those that end,\nduring the viewer's day, in time order, with the total of each.", operationId: 'seamConsoleV1WorkspaceListAccessCodesForTodayGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list access codes.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'starts_at', schema: { description: "Start of the viewer's day, inclusive. Pass with `ends_at`; defaults to the start of the current UTC day.", format: 'date-time', type: 'string', }, }, { in: 'query', name: 'ends_at', schema: { description: "End of the viewer's day, exclusive. Pass with `starts_at`; defaults to the end of the current UTC day.", format: 'date-time', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 50, description: 'Maximum number of starting, and of ending, access codes to return.', exclusiveMinimum: true, maximum: 200, minimum: 0, type: 'integer', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_codes_for_today: { properties: { ending: { items: { properties: { access_code_id: { format: 'uuid', type: 'string', }, code: { nullable: true, type: 'string' }, device_id: { format: 'uuid', type: 'string' }, device_name: { type: 'string' }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, name: { nullable: true, type: 'string' }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, status: { enum: [ 'setting', 'set', 'unset', 'removing', 'unknown', ], type: 'string', }, }, required: [ 'access_code_id', 'code', 'name', 'device_id', 'device_name', 'starts_at', 'ends_at', 'status', ], type: 'object', }, type: 'array', }, ending_count: { type: 'integer' }, starting: { items: { properties: { access_code_id: { format: 'uuid', type: 'string', }, code: { nullable: true, type: 'string' }, device_id: { format: 'uuid', type: 'string' }, device_name: { type: 'string' }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, name: { nullable: true, type: 'string' }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, status: { enum: [ 'setting', 'set', 'unset', 'removing', 'unknown', ], type: 'string', }, }, required: [ 'access_code_id', 'code', 'name', 'device_id', 'device_name', 'starts_at', 'ends_at', 'status', ], type: 'object', }, type: 'array', }, starting_count: { type: 'integer' }, }, required: [ 'starting_count', 'starting', 'ending_count', 'ending', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['access_codes_for_today', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/list_access_codes_for_today', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'workspace'], 'x-fern-sdk-method-name': 'list_access_codes_for_today', 'x-fern-sdk-return-value': 'access_codes_for_today', 'x-response-key': 'access_codes_for_today', 'x-title': 'List Access Codes for Today', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/list_attention_items': { get: { description: 'Lists the devices with errors and the managed access codes that failed to\nreach their device in the last 7 days, newest first, with the total of each.', operationId: 'seamConsoleV1WorkspaceListAttentionItemsGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list attention items.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 5, description: 'Maximum number of devices, and of access codes, to return.', exclusiveMinimum: true, maximum: 50, minimum: 0, type: 'integer', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { attention_items: { properties: { access_code_count: { type: 'integer' }, access_codes: { items: { properties: { access_code_id: { format: 'uuid', type: 'string', }, code: { nullable: true, type: 'string' }, device_id: { format: 'uuid', type: 'string' }, device_name: { type: 'string' }, error: { properties: { error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message'], type: 'object', }, name: { nullable: true, type: 'string' }, }, required: [ 'access_code_id', 'code', 'name', 'device_id', 'device_name', 'error', ], type: 'object', }, type: 'array', }, device_count: { type: 'integer' }, devices: { items: { properties: { device_id: { format: 'uuid', type: 'string' }, display_name: { type: 'string' }, error: { properties: { error_code: { type: 'string' }, message: { type: 'string' }, }, required: ['error_code', 'message'], type: 'object', }, }, required: ['device_id', 'display_name', 'error'], type: 'object', }, type: 'array', }, }, required: [ 'device_count', 'devices', 'access_code_count', 'access_codes', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['attention_items', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/list_attention_items', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'workspace'], 'x-fern-sdk-method-name': 'list_attention_items', 'x-fern-sdk-return-value': 'attention_items', 'x-response-key': 'attention_items', 'x-title': 'List Workspace Attention Items', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/console/v1/workspace/list_reservations_for_today': { get: { description: "Lists the reservations that check in, and those that check out, during the\nviewer's day, in time order, with the total of each.", operationId: 'seamConsoleV1WorkspaceListReservationsForTodayGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list reservations.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'starts_at', schema: { description: "Start of the viewer's day, inclusive. Pass with `ends_at`; defaults to the start of the current UTC day.", format: 'date-time', type: 'string', }, }, { in: 'query', name: 'ends_at', schema: { description: "End of the viewer's day, exclusive. Pass with `starts_at`; defaults to the end of the current UTC day.", format: 'date-time', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 50, description: 'Maximum number of check-ins, and of check-outs, to return.', exclusiveMinimum: true, maximum: 200, minimum: 0, type: 'integer', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, reservations_for_today: { properties: { check_in_count: { type: 'integer' }, check_ins: { items: { properties: { ends_at: { format: 'date-time', nullable: true, type: 'string', }, guest_name: { nullable: true, type: 'string' }, name: { nullable: true, type: 'string' }, reservation_id: { format: 'uuid', type: 'string', }, reservation_key: { type: 'string' }, space: { nullable: true, properties: { name: { nullable: true, type: 'string' }, space_id: { format: 'uuid', nullable: true, type: 'string', }, }, required: ['space_id', 'name'], type: 'object', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, }, required: [ 'reservation_id', 'reservation_key', 'guest_name', 'name', 'starts_at', 'ends_at', 'space', ], type: 'object', }, type: 'array', }, check_out_count: { type: 'integer' }, check_outs: { items: { properties: { ends_at: { format: 'date-time', nullable: true, type: 'string', }, guest_name: { nullable: true, type: 'string' }, name: { nullable: true, type: 'string' }, reservation_id: { format: 'uuid', type: 'string', }, reservation_key: { type: 'string' }, space: { nullable: true, properties: { name: { nullable: true, type: 'string' }, space_id: { format: 'uuid', nullable: true, type: 'string', }, }, required: ['space_id', 'name'], type: 'object', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, }, required: [ 'reservation_id', 'reservation_key', 'guest_name', 'name', 'starts_at', 'ends_at', 'space', ], type: 'object', }, type: 'array', }, }, required: [ 'check_in_count', 'check_ins', 'check_out_count', 'check_outs', ], type: 'object', }, }, required: ['reservations_for_today', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/console/v1/workspace/list_reservations_for_today', tags: [], 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'workspace'], 'x-fern-sdk-method-name': 'list_reservations_for_today', 'x-fern-sdk-return-value': 'reservations_for_today', 'x-response-key': 'reservations_for_today', 'x-title': 'List Reservations for Today', 'x-undocumented': 'Internal endpoint for Console', }, }, '/seam/customer/v1/access_grants/list': { get: { description: 'Gets an Access Grant.', operationId: 'seamCustomerV1AccessGrantsListGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['access_grants', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/access_grants/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'access_grants'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'access_grants', 'x-response-key': 'access_grants', 'x-title': 'List Access Grants (Other Access)', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/access_grants/update': { patch: { description: 'Updates the spaces (locations) associated with an Access Grant.', operationId: 'seamCustomerV1AccessGrantsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_grant_id: { description: 'ID of the Access Grant to update.', format: 'uuid', type: 'string', }, space_ids: { description: 'Array of location IDs to associate with the access grant.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, required: ['access_grant_id', 'space_ids'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/access_grants/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'access_grants'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Access Grant Spaces', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/access_methods/encode': { post: { description: 'Encodes an existing access method onto a plastic card placed on the specified encoder.\nThis endpoint is intended for use within embedded customer portals, such as deep links\nfor reservation management.', operationId: 'seamCustomerV1AccessMethodsEncodePost', requestBody: { content: { 'application/json': { schema: { properties: { access_method_id: { description: 'ID of the access method to encode onto a card.', format: 'uuid', type: 'string', }, acs_encoder_id: { description: 'ID of the encoder to use for encoding the access method.', format: 'uuid', type: 'string', }, }, required: ['acs_encoder_id', 'access_method_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/access_methods/encode', tags: [], 'x-action-attempt-type': 'ENCODE_CREDENTIAL', 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'access_methods'], 'x-fern-sdk-method-name': 'encode', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Encode an Access Method', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automation_device_actions/list': { get: { description: 'Returns the device automation actions planned or run for a reservation, ordered by when they run.', operationId: 'seamCustomerV1AutomationDeviceActionsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'The customer_key identifying the customer. Required when not using client_session_with_customer auth.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'reservation_id', schema: { description: 'ID of the reservation whose device automation actions to list.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'reservation_key', schema: { description: 'Key of the reservation whose device automation actions to list.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { automation_device_actions: { items: { properties: { action_attempt_id: { format: 'uuid', type: 'string' }, automation_device_action_id: { format: 'uuid', type: 'string', }, completed_at: { format: 'date-time', nullable: true, type: 'string', }, device_id: { format: 'uuid', type: 'string' }, message: { type: 'string' }, phase: { type: 'string' }, reservation_id: { format: 'uuid', type: 'string' }, rule_type: { enum: ['sound', 'sensor', 'pool'], type: 'string', }, run_at: { format: 'date-time', type: 'string' }, skip_reason: { type: 'string' }, status: { enum: [ 'pending', 'running', 'succeeded', 'skipped', 'failed', ], type: 'string', }, warnings: { items: { properties: { message: { type: 'string' } }, required: ['message'], type: 'object', }, type: 'array', }, }, required: [ 'automation_device_action_id', 'reservation_id', 'device_id', 'rule_type', 'phase', 'run_at', 'status', 'completed_at', 'warnings', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['automation_device_actions', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/automation_device_actions/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'automation_device_actions', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'automation_device_actions', 'x-has-required-parameters': true, 'x-response-key': 'automation_device_actions', 'x-title': 'List Device Automation Actions for a Reservation', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automation_runs/create': { post: { description: "Runs automations for a reservation now instead of waiting for the next connector sync. Use it after deleting a reservation's access grant to issue a new one.", operationId: 'seamCustomerV1AutomationRunsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'Key of the customer that owns the reservation. Not allowed with client_session_with_customer auth.', minLength: 1, type: 'string', }, reservation_key: { description: 'Key of the reservation to run automations for.', minLength: 1, type: 'string', }, should_ignore_guest_phone_last4_as_code: { default: false, description: "Don't use the last four digits of the guest's phone number as the new access grant's code, even when the automation is configured to.", type: 'boolean', }, should_ignore_preferred_code: { default: false, description: "Don't use the reservation's preferred code for the new access grant's code.", type: 'boolean', }, }, required: ['reservation_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { automation_run: { properties: { access_grant_id: { description: 'ID of the access grant the run created.', format: 'uuid', nullable: true, type: 'string', }, message: { nullable: true, type: 'string' }, reservation_id: { format: 'uuid', type: 'string' }, reservation_key: { type: 'string' }, reused_code_source: { description: "Set when the new access grant's code is fixed by the reservation instead of generated, so it matches the previous code. `reservation_preferred_code` means the reservation sets a preferred code; `guest_phone_number` means the automation uses the last digits of the guest's phone number.", enum: [ 'reservation_preferred_code', 'guest_phone_number', ], nullable: true, type: 'string', }, skip_reason: { description: 'Why the run did not create an access grant.', nullable: true, type: 'string', }, status: { enum: ['access_grant_created', 'skipped'], type: 'string', }, }, required: [ 'status', 'reservation_id', 'reservation_key', 'access_grant_id', 'skip_reason', 'message', 'reused_code_source', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['automation_run', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/customer/v1/automation_runs/create', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automation_runs'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'automation_run', 'x-response-key': 'automation_run', 'x-title': 'Create Automation Run', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automation_runs/list': { get: { description: 'Returns a list of all automation runs for a workspace or customer.', operationId: 'seamCustomerV1AutomationRunsListGet', parameters: [ { in: 'query', name: 'automation_id', schema: { description: 'ID of the automation for which you want to retrieve all automation runs.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'partner_resource_id', schema: { description: 'ID of the partner resource for which you want to retrieve all automation runs.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'rule', schema: { description: 'Filter automation runs by the specific rule that was executed.', enum: [ 'reservation_created', 'reservation_time_updated', 'reservation_deleted', 'space_name_updated', ], type: 'string', }, }, { in: 'query', name: 'success', schema: { description: 'Filter automation runs by success status.', type: 'boolean', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned automation runs. Returns runs created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { automation_runs: { items: { properties: { automation_id: { format: 'uuid', nullable: true, type: 'string', }, automation_result: { properties: { actions: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, action_type: { enum: ['create', 'update', 'delete'], type: 'string', }, resource_type: { type: 'string' }, }, required: [ 'action_type', 'resource_type', 'access_grant_id', ], type: 'object', }, type: 'array', }, error: { type: 'string' }, message: { type: 'string' }, rule: { enum: [ 'reservation_created', 'reservation_time_updated', 'reservation_deleted', ], type: 'string', }, success: { type: 'boolean' }, }, required: ['success', 'rule', 'actions'], type: 'object', }, automation_run_id: { format: 'uuid', type: 'string' }, created_at: { type: 'string' }, partner_key: { nullable: true, type: 'string' }, partner_resource_id: { format: 'uuid', nullable: true, type: 'string', }, resource_type: { nullable: true, type: 'string' }, resource_type_alias: { nullable: true, type: 'string', }, workspace_id: { format: 'uuid', type: 'string' }, }, required: [ 'automation_run_id', 'workspace_id', 'automation_id', 'partner_resource_id', 'partner_key', 'resource_type', 'resource_type_alias', 'created_at', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['automation_runs', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/automation_runs/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automation_runs'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'automation_runs', 'x-response-key': 'automation_runs', 'x-title': 'List Automation Runs', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automations/delete': { delete: { description: 'Deletes the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.', operationId: 'seamCustomerV1AutomationsDeleteDelete', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/seam/customer/v1/automations/delete', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete Customer Portal Automation Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automations/get': { get: { description: 'Gets the current automation configuration for a customer portal workspace.\nWhen customer_key is provided, returns customer-specific config if available,\notherwise falls back to workspace-level config.', operationId: 'seamCustomerV1AutomationsGetGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Key of the customer to get automation config for.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_rules: { properties: { reservation_created: { properties: { config: { properties: { access_ends_minutes_after_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, access_methods: { items: { enum: ['card', 'mobile_key', 'code'], type: 'string', }, minItems: 1, type: 'array', }, access_starts_minutes_before_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, card_count_on_reservation_create: { minimum: 0, type: 'integer', }, instant_key_max_use_count: { minimum: 1, type: 'integer', }, method_issuance_strategy: { enum: [ 'first_available', 'first_two_available', 'all_available', ], type: 'string', }, prefer_guest_phone_last4_as_code: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `prefer_guest_phone_last_digits_as_code`.', 'x-end-of-life': '2026-11-09', }, prefer_guest_phone_last_digits_as_code: { description: "Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.", type: 'boolean', }, }, required: [ 'access_methods', 'method_issuance_strategy', ], type: 'object', }, rule: { enum: ['reservation_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, reservation_deleted: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_deleted'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_spaces_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_spaces_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_time_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_time_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, space_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['space_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, staff_member_created: { properties: { config: { properties: { allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, }, type: 'object', }, rule: { enum: ['staff_member_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, staff_member_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['staff_member_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, user_identity_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['user_identity_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, }, type: 'object', }, climate_rules: { properties: { rules: { properties: { reservation_created: { properties: { automated_occupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, automated_unoccupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, occupied_preset_key: { type: 'string' }, precondition_minutes_before_reservation: { format: 'float', type: 'number', }, unoccupied_preset_key: { type: 'string' }, }, type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, ok: { type: 'boolean' }, pool_rules: { properties: { rules: { properties: { reservation_created: { properties: { on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, turn_off: { enum: [true], type: 'boolean' }, }, required: [ 'minutes_after_check_out', 'turn_off', ], type: 'object', }, on_heat_up: { properties: { heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, minutes_before_check_in: { maximum: 10_080, minimum: 0, type: 'integer', }, }, required: ['minutes_before_check_in'], type: 'object', }, water_bodies: { description: "Which water in the reservation's spaces to heat: pools, spas, or both.", enum: ['pools', 'spas', 'pools_and_spas'], type: 'string', }, }, required: [ 'water_bodies', 'on_heat_up', 'on_check_out', ], type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_spaces_updated: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, sensor_rules: { properties: { rules: { properties: { noise_sensors: { properties: { normal_hours: { properties: { noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, quiet_hours: { nullable: true, properties: { ends_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, starts_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, }, required: [ 'starts_daily_at', 'ends_daily_at', 'noise_threshold_decibels', ], type: 'object', }, vacant: { description: 'All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends.', nullable: true, properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, }, required: ['normal_hours'], type: 'object', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, sound_rules: { properties: { rules: { properties: { reservation_created: { properties: { on_check_in: { properties: { minutes_before_check_in: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { play_audio_clip: { properties: { audio_url: { description: 'Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself.', format: 'uri', maxLength: 2048, pattern: '^https:\\/\\/', type: 'string', }, volume: { maximum: 100, minimum: 0, type: 'integer', }, }, required: ['audio_url'], type: 'object', }, play_chime: { type: 'boolean' }, play_favorite: { properties: { favorite_id: { minLength: 1, type: 'string', }, shuffle: { type: 'boolean' }, }, required: ['favorite_id'], type: 'object', }, set_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { pause_playback: { type: 'boolean' }, reset_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_spaces_updated: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/automations/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'], 'x-fern-sdk-method-name': 'get', 'x-response-key': null, 'x-title': 'Get Customer Portal Automation Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/automations/get_guest_phone_last4_usage': { get: { description: 'Lists the automations in the workspace, workspace-level and per-customer, that still use the deprecated prefer_guest_phone_last4_as_code setting.', operationId: 'seamCustomerV1AutomationsGetGuestPhoneLast4UsageGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { customer_count: { description: 'Number of customers whose automation uses prefer_guest_phone_last4_as_code.', type: 'integer', }, is_used_by_workspace: { description: 'Whether the workspace-level automation uses prefer_guest_phone_last4_as_code.', type: 'boolean', }, ok: { type: 'boolean' }, }, required: ['is_used_by_workspace', 'customer_count', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/automations/get_guest_phone_last4_usage', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'], 'x-fern-sdk-method-name': 'get_guest_phone_last4_usage', 'x-response-key': null, 'x-title': 'Get Guest Phone Last 4 Usage', 'x-undocumented': 'Internal endpoint for the console.', }, }, '/seam/customer/v1/automations/switch_to_guest_phone_last_digits': { post: { description: 'Switches every automation in the workspace, workspace-level and per-customer, from the deprecated prefer_guest_phone_last4_as_code setting to prefer_guest_phone_last_digits_as_code.', operationId: 'seamCustomerV1AutomationsSwitchToGuestPhoneLastDigitsPost', requestBody: { content: { 'application/json': { schema: { properties: {}, type: 'object' } }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, switched_count: { description: 'Number of automations that were switched.', type: 'integer', }, }, required: ['switched_count', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/automations/switch_to_guest_phone_last_digits', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'], 'x-fern-sdk-method-name': 'switch_to_guest_phone_last_digits', 'x-response-key': null, 'x-title': 'Switch to Guest Phone Last Digits', 'x-undocumented': 'Internal endpoint for the console.', }, }, '/seam/customer/v1/automations/update': { patch: { description: 'Updates the automation configuration for a customer portal workspace.', operationId: 'seamCustomerV1AutomationsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_rules: { description: 'Access automation rules configuration.', properties: { reservation_created: { nullable: true, properties: { config: { properties: { access_ends_minutes_after_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, access_methods: { items: { enum: ['card', 'mobile_key', 'code'], type: 'string', }, minItems: 1, type: 'array', }, access_starts_minutes_before_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, card_count_on_reservation_create: { minimum: 0, type: 'integer', }, instant_key_max_use_count: { minimum: 1, type: 'integer', }, method_issuance_strategy: { enum: [ 'first_available', 'first_two_available', 'all_available', ], type: 'string', }, prefer_guest_phone_last4_as_code: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `prefer_guest_phone_last_digits_as_code`.', 'x-end-of-life': '2026-11-09', }, prefer_guest_phone_last_digits_as_code: { description: "Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.", type: 'boolean', }, }, required: [ 'access_methods', 'method_issuance_strategy', ], type: 'object', }, rule: { enum: ['reservation_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, reservation_deleted: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_deleted'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_spaces_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_spaces_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_time_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_time_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, space_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['space_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, staff_member_created: { nullable: true, properties: { config: { properties: { allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, }, type: 'object', }, rule: { enum: ['staff_member_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, staff_member_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['staff_member_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, user_identity_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['user_identity_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, }, type: 'object', }, climate_rules: { description: 'Climate automation rules configuration.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { automated_occupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, automated_unoccupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, occupied_preset_key: { type: 'string' }, precondition_minutes_before_reservation: { format: 'float', type: 'number', }, unoccupied_preset_key: { type: 'string' }, }, type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, customer_key: { description: 'Key of the customer to update automation config for.', minLength: 1, type: 'string', }, pool_rules: { description: 'Pool heating automation rules configuration. Requires pool devices to be enabled for the workspace.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, turn_off: { enum: [true], type: 'boolean' }, }, required: [ 'minutes_after_check_out', 'turn_off', ], type: 'object', }, on_heat_up: { properties: { heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, minutes_before_check_in: { maximum: 10_080, minimum: 0, type: 'integer', }, }, required: ['minutes_before_check_in'], type: 'object', }, water_bodies: { description: "Which water in the reservation's spaces to heat: pools, spas, or both.", enum: ['pools', 'spas', 'pools_and_spas'], type: 'string', }, }, required: [ 'water_bodies', 'on_heat_up', 'on_check_out', ], type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_spaces_updated: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, sensor_rules: { description: "Sensor automation rules configuration. Seam treats it as the source of truth: it is applied to the sensors in every space of the customer when saved and to sensors added to those spaces later, and re-applied when a sensor's settings are changed outside Seam.", properties: { rules: { properties: { noise_sensors: { nullable: true, properties: { normal_hours: { properties: { noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, quiet_hours: { nullable: true, properties: { ends_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, starts_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, }, required: [ 'starts_daily_at', 'ends_daily_at', 'noise_threshold_decibels', ], type: 'object', }, vacant: { description: 'All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends.', nullable: true, properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, }, required: ['normal_hours'], type: 'object', }, }, type: 'object', }, }, type: 'object', }, sound_rules: { description: 'Sound automation rules configuration.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { on_check_in: { properties: { minutes_before_check_in: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { play_audio_clip: { properties: { audio_url: { description: 'Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself.', format: 'uri', maxLength: 2048, pattern: '^https:\\/\\/', type: 'string', }, volume: { maximum: 100, minimum: 0, type: 'integer', }, }, required: ['audio_url'], type: 'object', }, play_chime: { type: 'boolean' }, play_favorite: { properties: { favorite_id: { minLength: 1, type: 'string', }, shuffle: { type: 'boolean' }, }, required: ['favorite_id'], type: 'object', }, set_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { pause_playback: { type: 'boolean' }, reset_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_spaces_updated: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/automations/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customer Portal Automation Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/connected_accounts/replace_bridge': { post: { description: "Moves one of the authenticated customer's connected accounts whose Seam Bridge is disconnected onto a newly installed Seam Bridge, identified by the pairing code it shows. No provider sign-in is needed. Requires a customer portal with `features.configure.allow_bridge_replacement` enabled.", operationId: 'seamCustomerV1ConnectedAccountsReplaceBridgePost', requestBody: { content: { 'application/json': { schema: { properties: { connected_account_id: { description: 'ID of the connected account whose Seam Bridge you want to replace.', format: 'uuid', type: 'string', }, pairing_code: { description: 'Pairing code shown in the new Seam Bridge app.', minLength: 1, type: 'string', }, }, required: ['connected_account_id', 'pairing_code'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/connected_accounts/replace_bridge', tags: ['/connected_accounts'], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'connected_accounts', ], 'x-fern-sdk-method-name': 'replace_bridge', 'x-response-key': null, 'x-title': "Replace the Seam Bridge of a Customer's Connected Account", 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/connector_customers/delete': { post: { description: "Removes one customer from a connector and deactivates that customer's connection. The connector and its other customers are kept, even when this was the connector's last customer. Reservations, spaces, and other resources already synced for the customer are not deleted.", operationId: 'seamCustomerV1ConnectorCustomersDeletePost', requestBody: { content: { 'application/json': { schema: { properties: { connector_customer_id: { description: 'ID of the connector customer to delete.', format: 'uuid', type: 'string', }, }, required: ['connector_customer_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connector_customer: { properties: { connector_customer_id: { type: 'string' }, connector_id: { type: 'string' }, status: { enum: ['deleted'], type: 'string' }, }, required: [ 'connector_customer_id', 'connector_id', 'status', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector_customer', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connector_customers/delete', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'connector_customers', ], 'x-fern-sdk-method-name': 'delete', 'x-fern-sdk-return-value': 'connector_customer', 'x-response-key': 'connector_customer', 'x-title': 'Delete Connector Customer', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connector_customers/list': { get: { description: 'Lists connector customers for a given connector.', operationId: 'seamCustomerV1ConnectorCustomersListGet', parameters: [ { in: 'query', name: 'connector_id', schema: { description: 'ID of the connector.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connector_customers: { items: { properties: { connector_customer_id: { type: 'string' }, connector_id: { type: 'string' }, created_at: { type: 'string' }, customer_key: { type: 'string' }, initial_sync_completed: { type: 'boolean' }, initial_sync_status: { nullable: true, type: 'string', }, instance_config: { additionalProperties: { $ref: '#/components/schemas/access_code', }, nullable: true, type: 'object', }, status: { nullable: true, type: 'string' }, updated_at: { type: 'string' }, }, required: [ 'connector_customer_id', 'connector_id', 'customer_key', 'instance_config', 'initial_sync_completed', 'initial_sync_status', 'status', 'created_at', 'updated_at', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['connector_customers', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/connector_customers/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'connector_customers', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'connector_customers', 'x-response-key': 'connector_customers', 'x-title': 'List Connector Customers', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/authorize': { get: { description: 'Returns the OAuth authorization URL for a global connector.\nThis endpoint only works for global connectors (connectors that support multiple customers).', operationId: 'seamCustomerV1ConnectorsAuthorizeGet', parameters: [ { in: 'query', name: 'slug', required: true, schema: { description: 'Workspace slug', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connector_name', required: false, schema: { description: 'Connector name/type. If not provided, workspace_slug will be used as connector_name', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { connector_authorize: { properties: { authorize_url: { format: 'uri', type: 'string' }, connector_type: { type: 'string' }, }, required: ['authorize_url', 'connector_type'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector_authorize', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, summary: '/seam/customer/v1/connectors/authorize', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'authorize', 'x-fern-sdk-return-value': 'connector_authorize', 'x-response-key': 'connector_authorize', 'x-title': 'Get OAuth Authorization URL for Global Connector', 'x-undocumented': 'Internal endpoint for OAuth authorization.', }, }, '/seam/customer/v1/connectors/connector_types': { get: { description: 'Lists all available connector types and their editable fields for UI input.', operationId: 'seamCustomerV1ConnectorsConnectorTypesGet', responses: { '200': { content: { 'application/json': { schema: { properties: { connector_types: { items: { properties: { connector_type: { type: 'string' }, description: { type: 'string' }, display_name: { type: 'string' }, editable_fields: { items: { properties: { description: { type: 'string' }, display_name: { type: 'string' }, name: { type: 'string' }, required: { type: 'boolean' }, type: { enum: [ 'string', 'string[]', 'number', 'boolean', ], type: 'string', }, }, required: [ 'name', 'display_name', 'description', 'type', 'required', ], type: 'object', }, type: 'array', }, }, required: [ 'connector_type', 'display_name', 'editable_fields', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['connector_types', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/connectors/connector_types', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'connector_types', 'x-fern-sdk-return-value': 'connector_types', 'x-response-key': 'connector_types', 'x-title': 'List Connector Types', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/create': { post: { description: 'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.', operationId: 'seamCustomerV1ConnectorsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { config: { additionalProperties: {}, description: 'Instance-specific configuration for the connector', type: 'object', }, connector_type: { description: 'Type of connector to create', enum: [ 'mock', 'mews', 'rms', 'cloudbeds', 'smoobu', 'zonal', 'ical', 'lodgify', 'hostaway', 'guesty', 'acuity_scheduling', ], type: 'string', }, customer_key: { description: 'Key identifying the customer', minLength: 1, type: 'string', }, }, required: ['connector_type', 'config'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connector: { properties: { connector_id: { type: 'string' }, connector_type: { type: 'string' }, error: { type: 'string' }, status: { enum: ['active', 'inactive', 'error'], type: 'string', }, webhook_subscription: { properties: { events: { items: { type: 'string' }, type: 'array', }, status: { enum: ['active', 'inactive', 'error'], type: 'string', }, subscription_id: { type: 'string' }, webhook_url: { type: 'string' }, }, required: [ 'subscription_id', 'webhook_url', 'events', 'status', ], type: 'object', }, }, required: ['connector_id', 'connector_type', 'status'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connectors/create', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'connector', 'x-response-key': 'connector', 'x-title': 'Create Connector', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/delete': { post: { description: 'Deletes a connector from a workspace. The connector must already be assigned to a workspace.\nThis will remove the connector row from the database and deactivate any active connections.', operationId: 'seamCustomerV1ConnectorsDeletePost', requestBody: { content: { 'application/json': { schema: { properties: { connector_customer_id: { type: 'string' }, connector_id: { description: 'ID of the connector to delete', minLength: 1, type: 'string', }, customer_id: { type: 'string' }, customer_key: { minLength: 1, type: 'string' }, unique_provider_resource_key: { type: 'string' }, }, required: ['connector_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connector: { properties: { connector_id: { type: 'string' }, connector_type: { type: 'string' }, status: { enum: ['deleted'], type: 'string' }, }, required: ['connector_id', 'connector_type', 'status'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connectors/delete', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'delete', 'x-fern-sdk-return-value': 'connector', 'x-response-key': 'connector', 'x-title': 'Delete Connector', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/external_sites/list': { get: { description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.", operationId: 'seamCustomerV1ConnectorsExternalSitesListGet', parameters: [ { in: 'query', name: 'connected_account_id', required: true, schema: { description: 'ID of the connected account to list external sites for', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { external_sites: { items: { properties: { key: { type: 'string' }, name: { type: 'string' }, }, required: ['key', 'name'], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['external_sites', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connectors/external_sites/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'connectors', 'external_sites', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'external_sites', 'x-response-key': 'external_sites', 'x-title': 'List External Sites for a Connected Account', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/ical/validate-config': { post: { description: 'Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.', operationId: 'seamCustomerV1ConnectorsIcalValidateConfigPost', requestBody: { content: { 'application/json': { schema: { properties: { ical_config: { description: 'Config to validate', properties: { fields: { properties: { ends_at: { description: 'How to extract check-out date', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, guest_email: { description: 'How to extract guest email', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, guest_name: { description: 'How to extract guest name', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, guest_phone: { description: 'How to extract guest phone', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, reservation_key: { description: 'How to extract the reservation key (falls back to UID)', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, starts_at: { description: 'How to extract check-in date', properties: { pattern: { description: 'Regex with capture group to extract value from the property', type: 'string', }, source: { description: 'iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.', type: 'string', }, type: { description: "Special type handling — 'date' parses iCal date formats", enum: ['date'], type: 'string', }, }, required: ['source'], type: 'object', }, }, required: ['starts_at', 'ends_at'], type: 'object', }, filter: { description: 'Optional filter to skip non-matching events', properties: { pattern: { description: 'Regex pattern — events not matching are skipped', type: 'string', }, source: { description: 'iCal property name to match against', type: 'string', }, }, required: ['source', 'pattern'], type: 'object', }, }, required: ['fields'], type: 'object', }, ical_url: { description: 'iCal feed URL to validate against', format: 'uri', type: 'string', }, }, required: ['ical_url', 'ical_config'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, validation_result: { properties: { errors: { items: { type: 'string' }, type: 'array' }, filtered_events: { format: 'float', type: 'number' }, is_valid: { type: 'boolean' }, matched_events: { format: 'float', type: 'number' }, reservations: { items: { properties: { ends_at: { nullable: true, type: 'string' }, guest_email: { nullable: true, type: 'string' }, guest_name: { nullable: true, type: 'string' }, guest_phone: { nullable: true, type: 'string' }, reservation_key: { nullable: true, type: 'string', }, starts_at: { nullable: true, type: 'string' }, uid: { type: 'string' }, }, required: [ 'uid', 'reservation_key', 'guest_name', 'guest_email', 'guest_phone', 'starts_at', 'ends_at', ], type: 'object', }, type: 'array', }, total_events: { format: 'float', type: 'number' }, }, required: [ 'is_valid', 'total_events', 'matched_events', 'filtered_events', 'reservations', 'errors', ], type: 'object', }, }, required: ['validation_result', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connectors/ical/validate-config', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'connectors', 'ical', ], 'x-fern-sdk-method-name': 'validate-config', 'x-fern-sdk-return-value': 'validation_result', 'x-response-key': 'validation_result', 'x-title': 'Validate iCal Config', 'x-undocumented': 'Only used internally.', }, }, '/seam/customer/v1/connectors/list': { get: { description: 'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).', operationId: 'seamCustomerV1ConnectorsListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { connectors: { items: { properties: { config: { additionalProperties: { $ref: '#/components/schemas/access_code', }, type: 'object', }, connector_id: { type: 'string' }, connector_type: { type: 'string' }, created_at: { type: 'string' }, customer_key: { nullable: true, type: 'string' }, status: { enum: ['active', 'inactive', 'error'], type: 'string', }, unique_provider_resource_key: { nullable: true, type: 'string', }, updated_at: { type: 'string' }, }, required: [ 'connector_id', 'connector_type', 'customer_key', 'unique_provider_resource_key', 'status', 'config', 'created_at', 'updated_at', ], type: 'object', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['connectors', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/connectors/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'connectors', 'x-response-key': 'connectors', 'x-title': 'List Connectors', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/connectors/sync': { post: { description: 'Triggers an immediate data sync for a connector by scheduling a polling task.', operationId: 'seamCustomerV1ConnectorsSyncPost', requestBody: { content: { 'application/json': { schema: { properties: { connector_customer_id: { description: 'ID of the connector customer to sync', format: 'uuid', nullable: true, type: 'string', }, connector_id: { description: 'ID of the connector to sync', format: 'uuid', type: 'string', }, connector_type: { description: 'Type of the connector to sync', type: 'string', }, customer_key: { description: 'Key of the customer to sync', minLength: 1, type: 'string', }, unique_provider_resource_key: { description: 'Unique provider resource key of the connector to sync', nullable: true, type: 'string', }, }, required: ['connector_id', 'connector_type', 'customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connector_sync: { properties: { message: { type: 'string' }, status: { type: 'string' }, }, required: ['status', 'message'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector_sync', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { console_session_with_workspace: [] }], summary: '/seam/customer/v1/connectors/sync', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'sync', 'x-fern-sdk-return-value': 'connector_sync', 'x-response-key': 'connector_sync', 'x-title': 'Sync Connector Data', 'x-undocumented': 'Only used internally.', }, }, '/seam/customer/v1/connectors/update': { post: { description: 'Updates an existing connector in a workspace. The connector must already be assigned to a workspace.\nThe connector will be reactivated with the new configuration.', operationId: 'seamCustomerV1ConnectorsUpdatePost', requestBody: { content: { 'application/json': { schema: { properties: { config: { additionalProperties: {}, description: 'Instance-specific configuration for the connector', type: 'object', }, connector_customer_id: { description: 'ID of the connector customer to update (for global connectors like Cloudbeds)', format: 'uuid', type: 'string', }, connector_id: { description: 'ID of the connector to update', minLength: 1, type: 'string', }, customer_key: { description: 'Key identifying the customer', minLength: 1, type: 'string', }, }, required: ['connector_id', 'config'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { connector: { properties: { connector_id: { type: 'string' }, connector_type: { type: 'string' }, error: { type: 'string' }, status: { enum: ['active', 'inactive', 'error'], type: 'string', }, webhook_subscription: { properties: { events: { items: { type: 'string' }, type: 'array', }, status: { enum: ['active', 'inactive', 'error'], type: 'string', }, subscription_id: { type: 'string' }, webhook_url: { type: 'string' }, }, required: [ 'subscription_id', 'webhook_url', 'events', 'status', ], type: 'object', }, }, required: ['connector_id', 'connector_type', 'status'], type: 'object', }, ok: { type: 'boolean' }, }, required: ['connector', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session_with_customer: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/connectors/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'connector', 'x-response-key': 'connector', 'x-title': 'Update Connector', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/customers/automations/get': { get: { description: 'Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).', operationId: 'seamCustomerV1CustomersAutomationsGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { automation: { properties: { access_rules: { properties: { reservation_created: { properties: { config: { properties: { access_ends_minutes_after_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, access_methods: { items: { enum: ['card', 'mobile_key', 'code'], type: 'string', }, minItems: 1, type: 'array', }, access_starts_minutes_before_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, card_count_on_reservation_create: { minimum: 0, type: 'integer', }, instant_key_max_use_count: { minimum: 1, type: 'integer', }, method_issuance_strategy: { enum: [ 'first_available', 'first_two_available', 'all_available', ], type: 'string', }, prefer_guest_phone_last4_as_code: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `prefer_guest_phone_last_digits_as_code`.', 'x-end-of-life': '2026-11-09', }, prefer_guest_phone_last_digits_as_code: { description: "Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.", type: 'boolean', }, }, required: [ 'access_methods', 'method_issuance_strategy', ], type: 'object', }, rule: { enum: ['reservation_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, reservation_deleted: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_deleted'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_spaces_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_spaces_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_time_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['reservation_time_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, space_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['space_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, staff_member_created: { properties: { config: { properties: { allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, }, type: 'object', }, rule: { enum: ['staff_member_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, staff_member_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['staff_member_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, user_identity_name_updated: { properties: { config: { $ref: '#/components/schemas/access_code', }, rule: { enum: ['user_identity_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, }, type: 'object', }, climate_rules: { properties: { rules: { properties: { reservation_created: { properties: { automated_occupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean', }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, automated_unoccupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean', }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, occupied_preset_key: { type: 'string' }, precondition_minutes_before_reservation: { format: 'float', type: 'number', }, unoccupied_preset_key: { type: 'string' }, }, type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, pool_rules: { properties: { rules: { properties: { reservation_created: { properties: { on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, turn_off: { enum: [true], type: 'boolean', }, }, required: [ 'minutes_after_check_out', 'turn_off', ], type: 'object', }, on_heat_up: { properties: { heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, minutes_before_check_in: { maximum: 10_080, minimum: 0, type: 'integer', }, }, required: ['minutes_before_check_in'], type: 'object', }, water_bodies: { description: "Which water in the reservation's spaces to heat: pools, spas, or both.", enum: ['pools', 'spas', 'pools_and_spas'], type: 'string', }, }, required: [ 'water_bodies', 'on_heat_up', 'on_check_out', ], type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_spaces_updated: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, sensor_rules: { properties: { rules: { properties: { noise_sensors: { properties: { normal_hours: { properties: { noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, quiet_hours: { nullable: true, properties: { ends_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, starts_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, }, required: [ 'starts_daily_at', 'ends_daily_at', 'noise_threshold_decibels', ], type: 'object', }, vacant: { description: 'All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends.', nullable: true, properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, }, required: ['normal_hours'], type: 'object', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, sound_rules: { properties: { rules: { properties: { reservation_created: { properties: { on_check_in: { properties: { minutes_before_check_in: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { play_audio_clip: { properties: { audio_url: { description: 'Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself.', format: 'uri', maxLength: 2048, pattern: '^https:\\/\\/', type: 'string', }, volume: { maximum: 100, minimum: 0, type: 'integer', }, }, required: ['audio_url'], type: 'object', }, play_chime: { type: 'boolean' }, play_favorite: { properties: { favorite_id: { minLength: 1, type: 'string', }, shuffle: { type: 'boolean' }, }, required: ['favorite_id'], type: 'object', }, set_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { pause_playback: { type: 'boolean' }, reset_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, reservation_deleted: { $ref: '#/components/schemas/access_code', }, reservation_spaces_updated: { $ref: '#/components/schemas/access_code', }, reservation_time_updated: { $ref: '#/components/schemas/access_code', }, }, type: 'object', }, }, required: ['rules'], type: 'object', }, }, type: 'object', }, ok: { type: 'boolean' }, }, required: ['automation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/customers/automations/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'customers', 'automations', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'automation', 'x-response-key': 'automation', 'x-title': 'Get Customer Automation Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/customers/automations/update': { patch: { description: 'Updates the automation configuration for a specific customer.\nCreates a customer-level override if one does not already exist.\nWriting `pool_rules` requires a customer portal with `features.configure.allow_pool_automation_rule_customization` enabled.', operationId: 'seamCustomerV1CustomersAutomationsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { access_rules: { description: 'Access automation rules configuration.', properties: { reservation_created: { nullable: true, properties: { config: { properties: { access_ends_minutes_after_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, access_methods: { items: { enum: ['card', 'mobile_key', 'code'], type: 'string', }, minItems: 1, type: 'array', }, access_starts_minutes_before_reservation: { maximum: 1440, minimum: 0, type: 'integer', }, allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, card_count_on_reservation_create: { minimum: 0, type: 'integer', }, instant_key_max_use_count: { minimum: 1, type: 'integer', }, method_issuance_strategy: { enum: [ 'first_available', 'first_two_available', 'all_available', ], type: 'string', }, prefer_guest_phone_last4_as_code: { deprecated: true, type: 'boolean', 'x-deprecated': 'Use `prefer_guest_phone_last_digits_as_code`.', 'x-end-of-life': '2026-11-09', }, prefer_guest_phone_last_digits_as_code: { description: "Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.", type: 'boolean', }, }, required: [ 'access_methods', 'method_issuance_strategy', ], type: 'object', }, rule: { enum: ['reservation_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, reservation_deleted: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_deleted'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_spaces_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_spaces_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, reservation_time_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['reservation_time_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, space_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['space_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, staff_member_created: { nullable: true, properties: { config: { properties: { allow_shared_email_and_phone_across_user_identities: { type: 'boolean' }, }, type: 'object', }, rule: { enum: ['staff_member_created'], type: 'string', }, }, required: ['rule', 'config'], type: 'object', }, staff_member_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['staff_member_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, user_identity_name_updated: { nullable: true, properties: { config: { properties: {}, type: 'object' }, rule: { enum: ['user_identity_name_updated'], type: 'string', }, }, required: ['rule'], type: 'object', }, }, type: 'object', }, climate_rules: { description: 'Climate automation rules configuration.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { automated_occupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, automated_unoccupied_preset: { properties: { cooling_set_point_celsius: { format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { format: 'float', type: 'number', }, fan_mode: { enum: ['on', 'auto', 'circulate'], type: 'string', }, heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, is_override_allowed: { type: 'boolean' }, max_override_period_minutes: { format: 'float', type: 'number', }, mode: { enum: ['heat', 'cool', 'auto'], type: 'string', }, }, required: [ 'mode', 'fan_mode', 'is_override_allowed', 'max_override_period_minutes', ], type: 'object', }, occupied_preset_key: { type: 'string' }, precondition_minutes_before_reservation: { format: 'float', type: 'number', }, unoccupied_preset_key: { type: 'string' }, }, type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, pool_rules: { description: 'Pool heating automation rules configuration.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, turn_off: { enum: [true], type: 'boolean' }, }, required: [ 'minutes_after_check_out', 'turn_off', ], type: 'object', }, on_heat_up: { properties: { heating_set_point_celsius: { format: 'float', type: 'number', }, heating_set_point_fahrenheit: { format: 'float', type: 'number', }, minutes_before_check_in: { maximum: 10_080, minimum: 0, type: 'integer', }, }, required: ['minutes_before_check_in'], type: 'object', }, water_bodies: { description: "Which water in the reservation's spaces to heat: pools, spas, or both.", enum: ['pools', 'spas', 'pools_and_spas'], type: 'string', }, }, required: [ 'water_bodies', 'on_heat_up', 'on_check_out', ], type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_spaces_updated: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, sensor_rules: { description: 'Sensor automation rules configuration.', properties: { rules: { properties: { noise_sensors: { nullable: true, properties: { normal_hours: { properties: { noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, quiet_hours: { nullable: true, properties: { ends_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, starts_daily_at: { description: "Time of day as HH:00, in each noise sensor's own time zone.", pattern: '^([01]\\d|2[0-3]):00$', type: 'string', }, }, required: [ 'starts_daily_at', 'ends_daily_at', 'noise_threshold_decibels', ], type: 'object', }, vacant: { description: 'All-day level for spaces with no stay in progress. Only applies to spaces that have had reservations, and starts minutes_after_check_out after a stay ends.', nullable: true, properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, noise_threshold_decibels: { format: 'float', maximum: 120, minimum: 60, type: 'number', }, }, required: ['noise_threshold_decibels'], type: 'object', }, }, required: ['normal_hours'], type: 'object', }, }, type: 'object', }, }, type: 'object', }, sound_rules: { description: 'Sound automation rules configuration.', properties: { rules: { properties: { reservation_created: { nullable: true, properties: { on_check_in: { properties: { minutes_before_check_in: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { play_audio_clip: { properties: { audio_url: { description: 'Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself.', format: 'uri', maxLength: 2048, pattern: '^https:\\/\\/', type: 'string', }, volume: { maximum: 100, minimum: 0, type: 'integer', }, }, required: ['audio_url'], type: 'object', }, play_chime: { type: 'boolean' }, play_favorite: { properties: { favorite_id: { minLength: 1, type: 'string', }, shuffle: { type: 'boolean' }, }, required: ['favorite_id'], type: 'object', }, set_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, on_check_out: { properties: { minutes_after_check_out: { maximum: 1440, minimum: 0, type: 'integer', }, speakers: { properties: { pause_playback: { type: 'boolean' }, reset_volume_to: { maximum: 100, minimum: 0, type: 'integer', }, unmute: { type: 'boolean' }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, reservation_deleted: { nullable: true, properties: {}, type: 'object', }, reservation_spaces_updated: { nullable: true, properties: {}, type: 'object', }, reservation_time_updated: { nullable: true, properties: {}, type: 'object', }, }, type: 'object', }, }, type: 'object', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/customers/automations/update', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'customers', 'automations', ], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customer Automation Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/customers/get': { get: { description: 'Returns a specified customer.', operationId: 'seamCustomerV1CustomersGetGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Key of the customer that you want to get.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'customer_id', schema: { description: 'ID of the customer that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customer: { $ref: '#/components/schemas/customer' }, ok: { type: 'boolean' }, }, required: ['customer', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/customers/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'customer', 'x-has-required-parameters': true, 'x-response-key': 'customer', 'x-title': 'Get a Customer', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/customers/list': { get: { description: 'Returns a list of all customers within the workspace.', operationId: 'seamCustomerV1CustomersListGet', parameters: [ { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned customers to include all records that satisfy a partial match using `customer_key`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customers: { items: { $ref: '#/components/schemas/customer' }, type: 'array', }, ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, }, required: ['customers', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/customers/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'customers', 'x-response-key': 'customers', 'x-title': 'List Customers', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/customers/me': { get: { description: 'Returns the customer associated with the authenticated client session.', operationId: 'seamCustomerV1CustomersMeGet', responses: { '200': { content: { 'application/json': { schema: { properties: { connector: { properties: { connector_type: { type: 'string' } }, required: ['connector_type'], type: 'object', }, customer: { $ref: '#/components/schemas/customer' }, ok: { type: 'boolean' }, }, required: ['customer', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/customers/me', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'], 'x-fern-sdk-method-name': 'me', 'x-response-key': null, 'x-title': 'Me', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/customers/notifications/get': { get: { description: 'Gets the notification settings for the authenticated customer, along with the workspace defaults they inherit when unset.', operationId: 'seamCustomerV1CustomersNotificationsGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { notification_settings: { properties: { low_battery_alert_threshold: { description: "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. `null` means the workspace or device default applies.", format: 'float', nullable: true, type: 'number', }, workspace_default_low_battery_alert_threshold: { description: 'Workspace-level low-battery alert threshold that applies when the customer has not set one. `null` means the device default applies.', format: 'float', nullable: true, type: 'number', }, }, required: [ 'low_battery_alert_threshold', 'workspace_default_low_battery_alert_threshold', ], type: 'object', }, ok: { type: 'boolean' }, }, required: ['notification_settings', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/customers/notifications/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'customers', 'notifications', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'notification_settings', 'x-response-key': 'notification_settings', 'x-title': 'Get Customer Notification Settings', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/customers/notifications/update': { patch: { description: 'Updates the notification settings for the authenticated customer. Requires a customer portal with `features.configure.allow_notification_customization` enabled.', operationId: 'seamCustomerV1CustomersNotificationsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { low_battery_alert_threshold: { description: "Battery level, from 0 to 1, at or below which `device.low_battery` events fire for this customer's devices. Pass `null` to fall back to the workspace default.", format: 'float', maximum: 1, minimum: 0, nullable: true, type: 'number', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/customers/notifications/update', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'customers', 'notifications', ], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customer Notification Settings', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/customers/open_portal': { post: { description: 'Opens an existing customer portal or creates a new one if the previous portal has expired.\nReturns an error if no portal was ever created for this customer.', operationId: 'seamCustomerV1CustomersOpenPortalPost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'The customer key to open a portal for.', minLength: 1, type: 'string', }, }, required: ['customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/customer/v1/customers/open_portal', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'], 'x-fern-sdk-method-name': 'open_portal', 'x-fern-sdk-return-value': 'magic_link', 'x-response-key': 'magic_link', 'x-title': 'Open Customer Portal', 'x-undocumented': 'Internal endpoint for Console.', }, }, '/seam/customer/v1/encoders/list': { get: { description: 'Returns a list of card encoders available to the customer.\nThis endpoint is intended for use within embedded customer portals, such as deep links\nfor reservation management, to allow staff to select an encoder for card encoding.', operationId: 'seamCustomerV1EncodersListGet', parameters: [ { in: 'query', name: 'space_key', schema: { description: 'Optional filter to list encoders for a specific space.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { encoders: { items: { $ref: '#/components/schemas/acs_encoder' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['encoders', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/encoders/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'encoders'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'encoders', 'x-response-key': 'encoders', 'x-title': 'List Encoders', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/events/list': { get: { description: 'Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.', operationId: 'seamCustomerV1EventsListGet', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space for which you want to list events.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'since', required: false, schema: { description: 'Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a `since` older than 90 days is treated as 90 days ago.', type: 'string', }, }, { in: 'query', name: 'between', required: false, schema: { description: 'Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. Only events from the last 90 days are returned, so a lower timestamp older than 90 days is treated as 90 days ago.', items: { type: 'string' }, maxItems: 2, minItems: 2, type: 'array', }, }, { in: 'query', name: 'event_type', required: false, schema: { description: 'Type of the events that you want to list.', enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, }, { in: 'query', name: 'event_types', required: false, schema: { description: 'Types of the events that you want to list.', items: { enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'limit', required: false, schema: { default: 500, description: 'Numerical limit on the number of events to return.', format: 'float', type: 'number', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { events: { items: { $ref: '#/components/schemas/event' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['events', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/events/list', tags: ['/events'], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'events'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'events', 'x-response-key': 'events', 'x-title': 'List Events for Customer Space', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/portals/get': { get: { description: 'Retrieves the configuration for a customer portal identified by customer_portal_id.', operationId: 'seamCustomerV1PortalsGetGet', parameters: [ { in: 'query', name: 'customer_portal_id', required: true, schema: { description: 'Customer portal ID.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customer_portal: { properties: { business_vertical: { description: 'Business vertical of the customer portal.', enum: [ 'neutral', 'short_term_rental', 'hospitality', 'multi_family', 'gym_management', 'property_tours', ], type: 'string', }, customer_resources_filters: { description: 'Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.', items: { properties: { field: { description: 'The custom_metadata field name to filter on.', pattern: '^[a-zA-Z_]\\w*$', type: 'string', }, operation: { description: "The comparison operation. Currently only '=' is supported.", enum: ['='], type: 'string', }, value: { description: 'The value to compare against.', oneOf: [ { type: 'string' }, { type: 'boolean' }, ], }, }, required: ['field', 'operation', 'value'], type: 'object', }, type: 'array', }, customization_profile_id: { description: 'The ID of the customization profile to use for the portal.', format: 'uuid', type: 'string', }, deep_link: { description: 'Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.', discriminator: { propertyName: 'resource_type' }, oneOf: [ { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['reservation'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['space'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['device'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['acs_entrance'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, ], 'x-undocumented': 'Internal endpoint for customer portals.', }, exclude_locale_picker: { default: false, description: 'Whether to exclude the option to select a locale within the portal UI.', type: 'boolean', }, feature_flags: { additionalProperties: { type: 'boolean' }, type: 'object', }, features: { default: { $ref: '#/components/schemas/access_code' }, properties: { configure: { default: { $ref: '#/components/schemas/access_code', }, description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { default: { $ref: '#/components/schemas/access_code', }, description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { default: { $ref: '#/components/schemas/access_code', }, description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { default: { $ref: '#/components/schemas/access_code', }, deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { default: { $ref: '#/components/schemas/access_code', }, description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, is_embedded: { default: false, description: 'Whether the portal is embedded in another application.', type: 'boolean', }, landing_page: { description: 'Configuration for the landing page when the portal loads.', properties: { manage: { oneOf: [ { oneOf: [ { properties: { space_key: { type: 'string' }, }, required: ['space_key'], type: 'object', }, { properties: { property_key: { type: 'string' }, }, required: ['property_key'], type: 'object', }, { properties: { room_key: { type: 'string' }, }, required: ['room_key'], type: 'object', }, { properties: { common_area_key: { type: 'string' }, }, required: ['common_area_key'], type: 'object', }, { properties: { unit_key: { type: 'string' }, }, required: ['unit_key'], type: 'object', }, { properties: { facility_key: { type: 'string' }, }, required: ['facility_key'], type: 'object', }, { properties: { building_key: { type: 'string' }, }, required: ['building_key'], type: 'object', }, { properties: { listing_key: { type: 'string' }, }, required: ['listing_key'], type: 'object', }, { properties: { property_listing_key: { type: 'string', }, }, required: ['property_listing_key'], type: 'object', }, { properties: { site_key: { type: 'string' }, }, required: ['site_key'], type: 'object', }, ], }, { oneOf: [ { properties: { reservation_key: { type: 'string' }, }, required: ['reservation_key'], type: 'object', }, { properties: { booking_key: { type: 'string' }, }, required: ['booking_key'], type: 'object', }, { properties: { access_grant_key: { type: 'string' }, }, required: ['access_grant_key'], type: 'object', }, ], }, ], }, }, type: 'object', }, locale: { description: 'The locale to use for the portal.', enum: [ 'en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES', 'de-DE', 'nl-NL', 'el-GR', 'pl-PL', 'ru-RU', ], type: 'string', }, navigation_mode: { default: 'full', description: "Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.", enum: ['full', 'restricted'], type: 'string', }, read_only: { default: false, description: "Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.", type: 'boolean', }, }, type: 'object', }, ok: { type: 'boolean' }, }, required: ['customer_portal', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/portals/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'portals'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'customer_portal', 'x-response-key': 'customer_portal', 'x-title': 'Get Customer Portal Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/portals/update': { patch: { description: 'Updates the configuration for a customer portal.', operationId: 'seamCustomerV1PortalsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { customer_portal_id: { description: 'ID of the customer portal to update.', format: 'uuid', type: 'string', }, portal_configuration: { description: 'Partial portal configuration to merge with the existing configuration.', properties: { customer_resources_filters: { description: 'Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata.', items: { properties: { field: { description: 'The custom_metadata field name to filter on.', pattern: '^[a-zA-Z_]\\w*$', type: 'string', }, operation: { description: "The comparison operation. Currently only '=' is supported.", enum: ['='], type: 'string', }, value: { description: 'The value to compare against.', oneOf: [{ type: 'string' }, { type: 'boolean' }], }, }, required: ['field', 'operation', 'value'], type: 'object', }, type: 'array', }, customization_profile_id: { description: 'The ID of the customization profile to use for the portal.', format: 'uuid', type: 'string', }, deep_link: { description: 'Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.', discriminator: { propertyName: 'resource_type' }, oneOf: [ { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['reservation'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_key: { type: 'string' }, resource_type: { enum: ['space'], type: 'string', }, }, required: ['resource_type', 'resource_key'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['device'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, { properties: { resource_id: { type: 'string' }, resource_type: { enum: ['acs_entrance'], type: 'string', }, }, required: ['resource_type', 'resource_id'], type: 'object', }, ], 'x-undocumented': 'Internal endpoint for customer portals.', }, exclude_locale_picker: { default: false, description: 'Whether to exclude the option to select a locale within the portal UI.', type: 'boolean', }, features: { description: 'Customer portal features. Settings you omit use the Seam default.', properties: { configure: { description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, is_embedded: { default: false, description: 'Whether the portal is embedded in another application.', type: 'boolean', }, landing_page: { description: 'Configuration for the landing page when the portal loads.', properties: { manage: { oneOf: [ { oneOf: [ { properties: { space_key: { type: 'string' }, }, required: ['space_key'], type: 'object', }, { properties: { property_key: { type: 'string' }, }, required: ['property_key'], type: 'object', }, { properties: { room_key: { type: 'string' }, }, required: ['room_key'], type: 'object', }, { properties: { common_area_key: { type: 'string' }, }, required: ['common_area_key'], type: 'object', }, { properties: { unit_key: { type: 'string' }, }, required: ['unit_key'], type: 'object', }, { properties: { facility_key: { type: 'string' }, }, required: ['facility_key'], type: 'object', }, { properties: { building_key: { type: 'string' }, }, required: ['building_key'], type: 'object', }, { properties: { listing_key: { type: 'string' }, }, required: ['listing_key'], type: 'object', }, { properties: { property_listing_key: { type: 'string' }, }, required: ['property_listing_key'], type: 'object', }, { properties: { site_key: { type: 'string' }, }, required: ['site_key'], type: 'object', }, ], }, { oneOf: [ { properties: { reservation_key: { type: 'string' }, }, required: ['reservation_key'], type: 'object', }, { properties: { booking_key: { type: 'string' }, }, required: ['booking_key'], type: 'object', }, { properties: { access_grant_key: { type: 'string' }, }, required: ['access_grant_key'], type: 'object', }, ], }, ], }, }, type: 'object', }, locale: { description: 'The locale to use for the portal.', enum: [ 'en-US', 'pt-PT', 'fr-FR', 'it-IT', 'es-ES', 'de-DE', 'nl-NL', 'el-GR', 'pl-PL', 'ru-RU', ], type: 'string', }, navigation_mode: { default: 'full', description: "Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links.", enum: ['full', 'restricted'], type: 'string', }, read_only: { default: false, description: "Whether the portal is read-only. When true, the customer can browse the portal but cannot perform any mutating action; write requests made with the portal's client session are rejected.", type: 'boolean', }, }, type: 'object', }, }, required: ['customer_portal_id', 'portal_configuration'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/portals/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'portals'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customer Portal Configuration', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/reservations/get': { get: { description: 'Returns a single reservation for a specific customer by reservation ID.', operationId: 'seamCustomerV1ReservationsGetGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'The customer_key identifying the customer. Required when not using client_session_with_customer auth.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'reservation_id', schema: { description: 'ID of the reservation to retrieve.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'reservation_key', schema: { description: 'Key of the reservation to retrieve.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, reservation: { properties: { access_grant_id: { format: 'uuid', nullable: true, type: 'string', }, access_methods: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, access_method_id: { format: 'uuid', type: 'string', }, code: { nullable: true, type: 'string' }, instant_key_url: { format: 'uri', type: 'string', }, is_card_encoding_required: { type: 'boolean' }, is_issued: { type: 'boolean' }, mode: { type: 'string' }, }, required: [ 'access_method_id', 'access_grant_id', 'mode', 'is_issued', ], type: 'object', }, type: 'array', }, connected_account_id: { format: 'uuid', nullable: true, type: 'string', }, created_at: { format: 'date-time', type: 'string' }, customer_key: { description: 'Key of the customer the reservation belongs to, or null when it belongs to none.', nullable: true, type: 'string', }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, guest: { nullable: true, properties: { email_address: { nullable: true, type: 'string' }, guest_key: { type: 'string' }, is_resource_syncing: { type: 'boolean' }, name: { nullable: true, type: 'string' }, phone_number: { nullable: true, type: 'string' }, user_identity_id: { format: 'uuid', nullable: true, type: 'string', }, }, required: [ 'guest_key', 'name', 'email_address', 'phone_number', 'user_identity_id', 'is_resource_syncing', ], type: 'object', }, guest_name: { nullable: true, type: 'string' }, is_primary: { description: "Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.", nullable: true, type: 'boolean', }, is_resource_syncing: { type: 'boolean' }, last_automation_result: { nullable: true, properties: { actions: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, action_type: { enum: [ 'create', 'update', 'delete', 'skip', ], type: 'string', }, message: { type: 'string' }, resource_type: { type: 'string' }, skip_reason: { type: 'string' }, }, required: ['action_type', 'resource_type'], type: 'object', }, type: 'array', }, created_at: { format: 'date-time', type: 'string' }, error: { type: 'string' }, message: { type: 'string' }, rule: { type: 'string' }, success: { type: 'boolean' }, }, required: [ 'success', 'rule', 'actions', 'created_at', ], type: 'object', }, name: { nullable: true, type: 'string' }, parent_reservation_id: { description: 'ID of the parent reservation when this reservation is a sub-reservation, one part of a larger reservation that holds its own access. Null otherwise.', format: 'uuid', nullable: true, type: 'string', }, parent_reservation_key: { description: 'Key of the parent reservation when this reservation is a sub-reservation. Null otherwise.', nullable: true, type: 'string', }, reservation_id: { format: 'uuid', type: 'string' }, reservation_key: { type: 'string' }, spaces: { items: { properties: { name: { nullable: true, type: 'string' }, space_id: { format: 'uuid', nullable: true, type: 'string', }, space_key: { type: 'string' }, }, required: ['space_id', 'space_key', 'name'], type: 'object', }, type: 'array', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, sub_reservations: { description: "Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces.", items: { properties: { access_grant_id: { format: 'uuid', nullable: true, type: 'string', }, access_methods: { items: { $ref: '#/components/schemas/access_method', }, type: 'array', }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, is_primary: { description: "Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.", type: 'boolean', }, is_resource_syncing: { type: 'boolean' }, name: { nullable: true, type: 'string' }, parent_reservation_key: { description: 'Key of the reservation this sub-reservation belongs to.', type: 'string', }, spaces: { items: { properties: { name: { nullable: true, type: 'string' }, space_id: { format: 'uuid', nullable: true, type: 'string', }, space_key: { type: 'string' }, }, required: ['space_id', 'space_key', 'name'], type: 'object', }, type: 'array', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, sub_reservation_id: { format: 'uuid', type: 'string', }, sub_reservation_key: { type: 'string' }, }, required: [ 'sub_reservation_id', 'sub_reservation_key', 'parent_reservation_key', 'is_primary', 'name', 'starts_at', 'ends_at', 'is_resource_syncing', 'access_grant_id', 'spaces', 'access_methods', ], type: 'object', }, type: 'array', }, }, required: [ 'reservation_id', 'reservation_key', 'name', 'starts_at', 'ends_at', 'created_at', 'is_resource_syncing', 'guest_name', 'guest', 'spaces', 'access_grant_id', 'access_methods', 'connected_account_id', 'customer_key', 'last_automation_result', 'parent_reservation_id', 'parent_reservation_key', 'is_primary', 'sub_reservations', ], type: 'object', }, }, required: ['reservation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/reservations/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'reservation', 'x-has-required-parameters': true, 'x-response-key': 'reservation', 'x-title': 'Get Reservation for Customer', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/reservations/list': { get: { description: 'Returns a list of reservations for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.', operationId: 'seamCustomerV1ReservationsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'The customer_key identifying the customer. Required when not using client_session_with_customer auth.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'space_key', schema: { description: 'Filter reservations by space key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'space_id', schema: { description: 'Filter reservations by space ID (UUID).', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'Filter reservations by the connected account whose connector discovered them.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_id', schema: { description: 'Filter reservations by the guest user identity ID.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned reservations. Returns reservations created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'created_after', schema: { description: 'Timestamp by which to limit returned reservations. Returns reservations created after this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'between', schema: { description: 'Lower and upper timestamps to filter reservations whose time range overlaps with the given interval.', items: { type: 'string' }, maxItems: 2, minItems: 2, type: 'array', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned reservations to include all records that satisfy a partial match using `reservation_id`, `reservation_key`, `name`, `guest_name`, or space names.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, reservations: { items: { properties: { access_methods: { items: { properties: { access_method_id: { format: 'uuid', type: 'string', }, is_issued: { type: 'boolean' }, mode: { type: 'string' }, pending_mutations: { items: { properties: { created_at: { format: 'date-time', type: 'string', }, message: { type: 'string' }, mutation_code: { type: 'string' }, }, required: [ 'mutation_code', 'message', 'created_at', ], type: 'object', }, type: 'array', }, warnings: { items: { properties: { created_at: { format: 'date-time', type: 'string', }, message: { type: 'string' }, warning_code: { type: 'string' }, }, required: [ 'warning_code', 'message', 'created_at', ], type: 'object', }, type: 'array', }, }, required: [ 'access_method_id', 'mode', 'is_issued', 'warnings', 'pending_mutations', ], type: 'object', }, type: 'array', }, connected_account_id: { format: 'uuid', nullable: true, type: 'string', }, created_at: { format: 'date-time', type: 'string' }, customer_key: { description: 'Key of the customer the reservation belongs to, or null when it belongs to none.', nullable: true, type: 'string', }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, guest_name: { nullable: true, type: 'string' }, is_resource_syncing: { type: 'boolean' }, last_automation_result: { nullable: true, properties: { actions: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, action_type: { enum: [ 'create', 'update', 'delete', 'skip', ], type: 'string', }, message: { type: 'string' }, resource_type: { type: 'string' }, skip_reason: { type: 'string' }, }, required: ['action_type', 'resource_type'], type: 'object', }, type: 'array', }, created_at: { format: 'date-time', type: 'string', }, error: { type: 'string' }, message: { type: 'string' }, rule: { type: 'string' }, success: { type: 'boolean' }, }, required: [ 'success', 'rule', 'actions', 'created_at', ], type: 'object', }, name: { nullable: true, type: 'string' }, pending_mutations: { items: { properties: { created_at: { format: 'date-time', type: 'string', }, message: { type: 'string' }, mutation_code: { type: 'string' }, }, required: [ 'mutation_code', 'message', 'created_at', ], type: 'object', }, type: 'array', }, reservation_id: { format: 'uuid', type: 'string' }, reservation_key: { type: 'string' }, spaces: { items: { properties: { name: { nullable: true, type: 'string' }, space_id: { nullable: true, type: 'string' }, space_key: { type: 'string' }, }, required: ['space_id', 'space_key', 'name'], type: 'object', }, type: 'array', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, sub_reservations: { description: "Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces.", items: { properties: { access_grant_id: { format: 'uuid', nullable: true, type: 'string', }, access_methods: { items: { $ref: '#/components/schemas/access_method', }, type: 'array', }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, is_primary: { description: "Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.", type: 'boolean', }, is_resource_syncing: { type: 'boolean' }, name: { nullable: true, type: 'string' }, parent_reservation_key: { description: 'Key of the reservation this sub-reservation belongs to.', type: 'string', }, spaces: { items: { properties: { name: { nullable: true, type: 'string' }, space_id: { format: 'uuid', nullable: true, type: 'string', }, space_key: { type: 'string' }, }, required: ['space_id', 'space_key', 'name'], type: 'object', }, type: 'array', }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, sub_reservation_id: { format: 'uuid', type: 'string', }, sub_reservation_key: { type: 'string' }, }, required: [ 'sub_reservation_id', 'sub_reservation_key', 'parent_reservation_key', 'is_primary', 'name', 'starts_at', 'ends_at', 'is_resource_syncing', 'access_grant_id', 'spaces', 'access_methods', ], type: 'object', }, type: 'array', }, warnings: { items: { properties: { created_at: { format: 'date-time', type: 'string', }, message: { type: 'string' }, warning_code: { type: 'string' }, }, required: [ 'warning_code', 'message', 'created_at', ], type: 'object', }, type: 'array', }, }, required: [ 'reservation_id', 'reservation_key', 'name', 'starts_at', 'ends_at', 'created_at', 'is_resource_syncing', 'guest_name', 'warnings', 'pending_mutations', 'access_methods', 'spaces', 'connected_account_id', 'customer_key', 'last_automation_result', 'sub_reservations', ], type: 'object', }, type: 'array', }, }, required: ['reservations', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/reservations/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'reservations', 'x-response-key': 'reservations', 'x-title': 'List Reservations for Customer Space', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/reservations/list_access_grants': { get: { description: 'Lists access grants linked to a reservation by reservation_key.', operationId: 'seamCustomerV1ReservationsListAccessGrantsGet', parameters: [ { in: 'query', name: 'customer_key', required: false, schema: { description: 'The customer_key identifying the customer. Required when not using client_session_with_customer auth.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'reservation_key', required: true, schema: { description: 'The reservation_key to filter access grants by.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['access_grants', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/reservations/list_access_grants', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'], 'x-fern-sdk-method-name': 'list_access_grants', 'x-fern-sdk-return-value': 'access_grants', 'x-response-key': 'access_grants', 'x-title': 'List Access Grants for Reservation', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/settings/business_verticals/list': { get: { description: 'Returns all available business verticals.', operationId: 'seamCustomerV1SettingsBusinessVerticalsListGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { business_verticals: { items: { description: 'Business vertical of the customer portal.', enum: [ 'neutral', 'short_term_rental', 'hospitality', 'multi_family', 'gym_management', 'property_tours', ], type: 'string', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['business_verticals', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }], summary: '/seam/customer/v1/settings/business_verticals/list', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'settings', 'business_verticals', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'business_verticals', 'x-response-key': 'business_verticals', 'x-title': 'List Business Verticals', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/settings/get': { get: { description: 'Retrieves the settings for a customer portal workspace.', operationId: 'seamCustomerV1SettingsGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { business_vertical: { description: 'Business vertical of the customer portal.', enum: [ 'neutral', 'short_term_rental', 'hospitality', 'multi_family', 'gym_management', 'property_tours', ], type: 'string', }, ok: { type: 'boolean' }, slug: { nullable: true, type: 'string' }, }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/settings/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'settings'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'business_vertical', 'x-response-key': 'business_vertical', 'x-title': 'Get Customer Portal Settings', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/settings/update': { patch: { description: 'Updates the settings for a customer portal workspace.', operationId: 'seamCustomerV1SettingsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { business_vertical: { description: 'Business vertical to set on the workspace.', enum: [ 'neutral', 'short_term_rental', 'hospitality', 'multi_family', 'gym_management', 'property_tours', ], type: 'string', }, slug: { description: 'Slug to set on the workspace.', nullable: true, type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ console_session_with_workspace: [] }, { api_key: [] }], summary: '/seam/customer/v1/settings/update', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'settings'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customer Portal Settings', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/settings/vertical_resource_aliases/get': { get: { description: "Returns the resource aliases for the workspace's business vertical, mapping\ngeneric resource types (space, user_identity, access_grant) to their\nvertical-specific terminology. Defaults to neutral if no vertical is set.", operationId: 'seamCustomerV1SettingsVerticalResourceAliasesGetGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, vertical_resource_aliases: { properties: { access_grant: { description: 'Primary access grant alias for this vertical.', properties: { collection_key: { description: 'The key alias for a collection of resources.', type: 'string', }, collection_label: { description: 'Human-readable label for a collection of resources.', type: 'string', }, resource_key: { description: 'The key alias for a single resource.', type: 'string', }, resource_label: { description: 'Human-readable label for a single resource.', type: 'string', }, }, required: [ 'resource_key', 'resource_label', 'collection_key', 'collection_label', ], type: 'object', }, additional_spaces: { description: 'Additional space aliases relevant to this vertical.', items: { properties: { collection_key: { description: 'The key alias for a collection of resources.', type: 'string', }, collection_label: { description: 'Human-readable label for a collection of resources.', type: 'string', }, resource_key: { description: 'The key alias for a single resource.', type: 'string', }, resource_label: { description: 'Human-readable label for a single resource.', type: 'string', }, }, required: [ 'resource_key', 'resource_label', 'collection_key', 'collection_label', ], type: 'object', }, type: 'array', }, space: { description: 'Primary space alias for this vertical.', properties: { collection_key: { description: 'The key alias for a collection of resources.', type: 'string', }, collection_label: { description: 'Human-readable label for a collection of resources.', type: 'string', }, resource_key: { description: 'The key alias for a single resource.', type: 'string', }, resource_label: { description: 'Human-readable label for a single resource.', type: 'string', }, }, required: [ 'resource_key', 'resource_label', 'collection_key', 'collection_label', ], type: 'object', }, user_identity: { description: 'Primary user identity alias for this vertical.', properties: { collection_key: { description: 'The key alias for a collection of resources.', type: 'string', }, collection_label: { description: 'Human-readable label for a collection of resources.', type: 'string', }, resource_key: { description: 'The key alias for a single resource.', type: 'string', }, resource_label: { description: 'Human-readable label for a single resource.', type: 'string', }, }, required: [ 'resource_key', 'resource_label', 'collection_key', 'collection_label', ], type: 'object', }, }, required: [ 'space', 'additional_spaces', 'user_identity', 'access_grant', ], type: 'object', }, }, required: ['vertical_resource_aliases', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/settings/vertical_resource_aliases/get', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'customer', 'v1', 'settings', 'vertical_resource_aliases', ], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'vertical_resource_aliases', 'x-response-key': 'vertical_resource_aliases', 'x-title': 'Get Vertical Resource Aliases', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/spaces/create': { post: { description: 'Creates a new space with optional parent space support.', operationId: 'seamCustomerV1SpacesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { acs_entrance_ids: { description: 'IDs of the entrances that you want to add to the new space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of connected accounts (third-party accounts) to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account a space came from.', items: { format: 'uuid', type: 'string' }, type: 'array', }, customer_data: { description: "Reservation/stay-related defaults for the space. When omitted and `connected_account_ids` is provided, `default_checkin_time` / `default_checkout_time` / `time_zone` are auto-inherited from the first connected account's connector configuration.", properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, device_ids: { description: 'IDs of the devices that you want to add to the new space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, name: { description: 'Name of the space that you want to create.', type: 'string', }, parent_space_key: { description: 'Space key of the parent space for this space.', minLength: 1, type: 'string', }, parent_space_name: { description: 'Name of the parent space for this space.', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', minLength: 1, type: 'string', }, }, required: ['name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, space: { $ref: '#/components/schemas/space' }, }, required: ['space', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/spaces/create', tags: [], 'x-draft': 'Early access.', 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'space', 'x-response-key': 'space', 'x-title': 'Create a Space', 'x-undocumented': 'Only used internally.', }, }, '/seam/customer/v1/spaces/list': { get: { description: 'Returns a list of all spaces.', operationId: 'seamCustomerV1SpacesListGet', parameters: [ { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.', format: 'uuid', type: 'string', 'x-draft': 'Needs review.', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'space_key', schema: { description: 'Filter spaces by space_key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'parent_space_id', schema: { description: 'Filter spaces to only include those whose parent space has the specified `parent_space_id`.', format: 'uuid', type: 'string', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'parent_space_key', schema: { description: 'Filter spaces to only include those whose parent space has the specified `parent_space_key`.', minLength: 1, type: 'string', 'x-undocumented': 'Only used internally.', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, }, required: ['spaces', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/customer/v1/spaces/list', tags: [], 'x-draft': 'Early access.', 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'spaces', 'x-response-key': 'spaces', 'x-title': 'List Spaces', 'x-undocumented': 'Only used internally.', }, }, '/seam/customer/v1/spaces/list_reservations': { get: { description: 'Returns a list of existing reservations for a specific space.\nIf issued_status is "issued", only reservations that have access methods issued will be returned.\nIf issued_status is "pending", only reservations that do not have access methods issued will be returned.\nIf issued_status is not provided, only reservations that do not have access methods issued will be returned.', operationId: 'seamCustomerV1SpacesListReservationsGet', parameters: [ { in: 'query', name: 'issued_status', required: false, schema: { default: 'pending', description: 'Filter reservations by issued status.', enum: ['issued', 'pending'], type: 'string', }, }, { in: 'query', name: 'space_key', required: true, schema: { description: 'Filter reservations by space key.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, reservations: { items: { properties: { access_methods: { items: { $ref: '#/components/schemas/access_method', }, type: 'array', }, created_at: { format: 'date-time', type: 'string' }, ends_at: { format: 'date-time', nullable: true, type: 'string', }, guest_name: { nullable: true, type: 'string' }, has_issued_access: { type: 'boolean' }, is_primary: { description: "Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.", nullable: true, type: 'boolean', }, last_automation_result: { nullable: true, properties: { actions: { items: { properties: { access_grant_id: { format: 'uuid', type: 'string', }, action_type: { enum: [ 'create', 'update', 'delete', 'skip', ], type: 'string', }, message: { type: 'string' }, resource_type: { type: 'string' }, skip_reason: { type: 'string' }, }, required: ['action_type', 'resource_type'], type: 'object', }, type: 'array', }, created_at: { format: 'date-time', type: 'string', }, error: { type: 'string' }, message: { type: 'string' }, rule: { type: 'string' }, success: { type: 'boolean' }, }, required: [ 'success', 'rule', 'actions', 'created_at', ], type: 'object', }, name: { nullable: true, type: 'string' }, parent_reservation_id: { description: 'ID of the parent reservation when this reservation is a sub-reservation, one part of a larger reservation that holds its own access. Null otherwise.', format: 'uuid', nullable: true, type: 'string', }, parent_reservation_key: { description: 'Key of the parent reservation when this reservation is a sub-reservation. Null otherwise.', nullable: true, type: 'string', }, reservation_id: { format: 'uuid', type: 'string' }, reservation_key: { type: 'string' }, starts_at: { format: 'date-time', nullable: true, type: 'string', }, }, required: [ 'reservation_id', 'reservation_key', 'name', 'starts_at', 'ends_at', 'created_at', 'guest_name', 'has_issued_access', 'access_methods', 'last_automation_result', 'parent_reservation_id', 'parent_reservation_key', 'is_primary', ], type: 'object', }, type: 'array', }, }, required: ['reservations', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/spaces/list_reservations', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'], 'x-fern-sdk-method-name': 'list_reservations', 'x-fern-sdk-return-value': 'reservations', 'x-response-key': 'reservations', 'x-title': 'List Reservations for Space', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/spaces/push_common_areas': { post: { description: 'Pushes common areas for a customer, optionally nested under spaces.\nThe customer_key is taken from the authenticated client session.', operationId: 'seamCustomerV1SpacesPushCommonAreasPost', requestBody: { content: { 'application/json': { schema: { properties: { common_areas: { items: { properties: { name: { type: 'string' } }, required: ['name'], type: 'object', }, type: 'array', }, spaces: { items: { properties: { common_areas: { items: { properties: { name: { type: 'string' } }, required: ['name'], type: 'object', }, type: 'array', }, name: { type: 'string' }, }, required: ['name', 'common_areas'], type: 'object', }, type: 'array', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session_with_customer: [] }], summary: '/seam/customer/v1/spaces/push_common_areas', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'], 'x-fern-sdk-method-name': 'push_common_areas', 'x-response-key': null, 'x-title': 'Push Common Areas', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/staff_members/get': { get: { description: 'Returns a staff member for a specific customer.', operationId: 'seamCustomerV1StaffMembersGetGet', parameters: [ { in: 'query', name: 'staff_member_key', required: true, schema: { description: 'Key of staff member to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { access_grant: { $ref: '#/components/schemas/access_grant' }, ok: { type: 'boolean' }, spaces: { items: { properties: { child_space_keys: { items: { type: 'string' }, type: 'array', }, space_key: { type: 'string' }, }, required: ['space_key'], type: 'object', }, type: 'array', }, staff_member: { description: 'Represents a staff member for a specific customer.', properties: { email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, space_keys: { description: 'List of unique identifiers for the spaces the staff member is associated with.', items: { type: 'string' }, type: 'array', }, staff_member_key: { description: 'Your unique identifier for the staff.', type: 'string', }, user_identity_id: { format: 'uuid', type: 'string' }, }, required: ['staff_member_key', 'name'], type: 'object', 'x-route-path': '/seam/customer/v1/staff_members', 'x-undocumented': 'Internal resource for customer portals.', }, }, required: ['spaces', 'staff_member', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/staff_members/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'staff_member', 'x-response-key': 'staff_member', 'x-title': 'Get Staff Member', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/customer/v1/staff_members/list': { get: { description: 'Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.', operationId: 'seamCustomerV1StaffMembersListGet', parameters: [ { in: 'query', name: 'space_key', schema: { description: 'Filter staff members by space key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'space_id', schema: { description: 'Filter staff members by space ID (UUID).', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, staff_members: { items: { description: 'Represents a staff member for a specific customer.', properties: { access_grant: { $ref: '#/components/schemas/access_grant', }, email_address: { description: 'Email address associated with the user identity.', type: 'string', }, name: { description: 'Your display name for this user identity resource.', type: 'string', }, phone_number: { description: 'Phone number associated with the user identity.', type: 'string', }, space_keys: { description: 'List of unique identifiers for the spaces the staff member is associated with.', items: { type: 'string' }, type: 'array', }, staff_member_key: { description: 'Your unique identifier for the staff.', type: 'string', }, user_identity_id: { format: 'uuid', type: 'string' }, }, required: ['staff_member_key', 'name'], type: 'object', 'x-route-path': '/seam/customer/v1/staff_members', 'x-undocumented': 'Internal resource for customer portals.', }, type: 'array', }, }, required: ['staff_members', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, ], summary: '/seam/customer/v1/staff_members/list', tags: [], 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'staff_members', 'x-response-key': 'staff_members', 'x-title': 'List Staff Members for Customer Space', 'x-undocumented': 'Internal endpoint for customer portals.', }, }, '/seam/instant_key/v1/client_sessions/exchange_short_code': { post: { description: 'Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.', operationId: 'seamInstantKeyV1ClientSessionsExchangeShortCodePost', requestBody: { content: { 'application/json': { schema: { properties: { short_code: { description: 'Short code that you want to exchange for a client session token.', type: 'string', }, }, required: ['short_code'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { client_session: { $ref: '#/components/schemas/client_session', }, ok: { type: 'boolean' }, }, required: ['client_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ certified_client: [] }], summary: '/seam/instant_key/v1/client_sessions/exchange_short_code', tags: ['/client_sessions'], 'x-fern-sdk-group-name': [ 'seam', 'instant_key', 'v1', 'client_sessions', ], 'x-fern-sdk-method-name': 'exchange_short_code', 'x-fern-sdk-return-value': 'client_session', 'x-response-key': 'client_session', 'x-title': 'Exchange Instant Key Short Code', 'x-undocumented': 'Seam Instant Key only.', }, }, '/seam/instant_key/v1/preview/get': { get: { operationId: 'seamInstantKeyV1PreviewGetGet', parameters: [ { in: 'query', name: 'instant_key_url', required: true, schema: { description: 'The short code of the instant key to preview.', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { instant_key_preview: { description: 'Represents a preview of an Instant Key with hotel, guest, and access information.', properties: { access: { items: { properties: { available: { type: 'boolean' }, hours: { type: 'string' }, icon: { type: 'string' }, location: { type: 'string' }, name: { type: 'string' }, }, required: ['name', 'icon', 'available'], type: 'object', }, type: 'array', }, created_at: { type: 'string' }, expires_at: { type: 'string' }, guest: { properties: { check_in_date: { type: 'string' }, check_out_date: { type: 'string' }, email: { type: 'string' }, first_name: { type: 'string' }, full_name: { type: 'string' }, last_name: { type: 'string' }, }, required: [ 'first_name', 'last_name', 'full_name', 'email', 'check_in_date', 'check_out_date', ], type: 'object', }, hotel: { properties: { accent_color: { type: 'string' }, hotel_name: { type: 'string' }, logo_url: { type: 'string' }, primary_color: { type: 'string' }, secondary_color: { type: 'string' }, verified: { type: 'boolean' }, }, required: [ 'hotel_name', 'primary_color', 'accent_color', 'secondary_color', 'verified', ], type: 'object', }, key_status: { enum: ['ready', 'expired', 'used'], type: 'string', }, room: { properties: { floor: { format: 'float', type: 'number' }, room_number: { type: 'string' }, room_type: { type: 'string' }, }, required: ['room_number', 'room_type', 'floor'], type: 'object', }, shortcode: { type: 'string' }, support_email: { type: 'string' }, support_phone: { type: 'string' }, updated_at: { type: 'string' }, }, required: [ 'shortcode', 'hotel', 'guest', 'room', 'access', 'key_status', 'support_phone', 'support_email', 'created_at', 'updated_at', 'expires_at', ], type: 'object', 'x-route-path': '/instant_keys/preview', }, ok: { type: 'boolean' }, }, required: ['instant_key_preview', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ certified_client: [] }], summary: '/seam/instant_key/v1/preview/get', tags: [], 'x-fern-sdk-group-name': ['seam', 'instant_key', 'v1', 'preview'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'instant_key_preview', 'x-response-key': 'instant_key_preview', 'x-title': 'Preview Instant Key', 'x-undocumented': 'Seam Instant Key only.', }, }, '/seam/mcp/v1/create_ro_token': { post: { description: 'Mints a short-lived, read-only token bound to a single workspace. Used by the Seam support agent to inspect a customer workspace via read-only public API endpoints.', operationId: 'seamMcpV1CreateRoTokenPost', requestBody: { content: { 'application/json': { schema: { properties: { created_by: { description: 'Identity of the automation minting the token (e.g. an agent session ID), recorded for auditing.', type: 'string', }, workspace_id: { description: 'ID of the workspace the token will be bound to.', format: 'uuid', type: 'string', }, }, required: ['workspace_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, support_read_only_token: { properties: { created_at: { description: 'Date and time at which the token was created.', type: 'string', }, expires_at: { description: 'Date and time at which the token expires. Tokens live for one hour.', type: 'string', }, token: { description: 'Support read-only token to use as a Bearer token.', type: 'string', }, workspace_id: { description: 'ID of the workspace the token is bound to.', format: 'uuid', type: 'string', }, }, required: [ 'token', 'workspace_id', 'created_at', 'expires_at', ], type: 'object', }, }, required: ['support_read_only_token', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ internal_service_agent: [] }], summary: '/seam/mcp/v1/create_ro_token', tags: [], 'x-fern-sdk-group-name': ['seam', 'mcp', 'v1'], 'x-fern-sdk-method-name': 'create_ro_token', 'x-fern-sdk-return-value': 'support_read_only_token', 'x-response-key': 'support_read_only_token', 'x-title': 'Create Support Read-Only Token', 'x-undocumented': 'Seam support agent only.', }, }, '/seam/mobile_sdk/v1/acs/credentials/list': { get: { description: 'Returns a list of all [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).', operationId: 'seamMobileSdkV1AcsCredentialsListGet', parameters: [], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_credentials: { items: { $ref: '#/components/schemas/acs_credential' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_credentials', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/seam/mobile_sdk/v1/acs/credentials/list', tags: ['/acs'], 'x-fern-sdk-group-name': [ 'seam', 'mobile_sdk', 'v1', 'acs', 'credentials', ], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'acs_credentials', 'x-response-key': 'acs_credentials', 'x-title': 'List Credentials', 'x-undocumented': 'Mobile SDK only.', }, }, '/seam/mobile_sdk/v1/phone_sessions/get_or_create': { post: { description: 'Gets or creates a session for a mobile SDK phone.', operationId: 'seamMobileSdkV1PhoneSessionsGetOrCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { custom_sdk_installation_id: { description: 'ID of the custom SDK installation that you want to use for the new session.', type: 'string', }, phone_device_metadata: { description: 'Phone device metadata that you want to use for the new session.', properties: { manufacturer: { type: 'string' }, model: { type: 'string' }, os_version: { type: 'string' }, }, type: 'object', }, phone_os: { description: 'Phone operating system that you want to use for the new session.', enum: ['ios', 'android'], type: 'string', }, }, required: ['custom_sdk_installation_id', 'phone_os'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, phone_session: { $ref: '#/components/schemas/phone_session', }, }, required: ['phone_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/seam/mobile_sdk/v1/phone_sessions/get_or_create', tags: [], 'x-fern-sdk-group-name': ['seam', 'mobile_sdk', 'v1', 'phone_sessions'], 'x-fern-sdk-method-name': 'get_or_create', 'x-fern-sdk-return-value': 'phone_session', 'x-response-key': 'phone_session', 'x-title': 'Get or Create a Phone Session', 'x-undocumented': 'Mobile SDK only.', }, }, '/seam/mobile_sdk/v1/report_salto_space_audit_trail': { post: { description: 'Reports audit trail data from Salto Space mobile SDK.', operationId: 'seamMobileSdkV1ReportSaltoSpaceAuditTrailPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_system_id: { format: 'uuid', type: 'string' }, salto_space_metadata: { properties: { justin_mobile_sdk_audit_trail_data: { minLength: 1, type: 'string', }, }, required: ['justin_mobile_sdk_audit_trail_data'], type: 'object', }, }, required: ['acs_system_id', 'salto_space_metadata'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ client_session: [] }], summary: '/seam/mobile_sdk/v1/report_salto_space_audit_trail', tags: [], 'x-fern-sdk-group-name': ['seam', 'mobile_sdk', 'v1'], 'x-fern-sdk-method-name': 'report_salto_space_audit_trail', 'x-response-key': null, 'x-title': 'Report Salto Space Audit Trail', 'x-undocumented': 'Mobile SDK only.', }, }, '/seam/partner/v1/building_blocks/spaces/auto_map': { get: { description: 'Auto-maps partner resources that have been pushed to Seam.', operationId: 'seamPartnerV1BuildingBlocksSpacesAutoMapGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which to auto-map spaces.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'collection_key', schema: { description: 'Collection key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'Connected account to scope auto-mapping to. Filters partner resources by the matching connector and limits available devices/entrances to this account.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, spaces: { items: { properties: { acs_entrances: { items: { properties: { acs_entrance_id: { format: 'uuid', type: 'string', }, connected_account_id: { format: 'uuid', type: 'string', }, name: { type: 'string' }, }, required: [ 'acs_entrance_id', 'name', 'connected_account_id', ], type: 'object', }, type: 'array', }, connected_account_ids: { items: { format: 'uuid', type: 'string' }, type: 'array', }, devices: { items: { properties: { connected_account_id: { format: 'uuid', type: 'string', }, device_id: { format: 'uuid', type: 'string' }, device_type: { type: 'string' }, name: { type: 'string' }, }, required: [ 'device_id', 'device_type', 'name', 'connected_account_id', ], type: 'object', }, type: 'array', }, is_common_area: { type: 'boolean' }, is_draft: { type: 'boolean' }, name: { type: 'string' }, needs_review: { type: 'boolean' }, parent_partner_resource_key: { type: 'string' }, partner_resource_key: { type: 'string' }, }, required: [ 'name', 'partner_resource_key', 'devices', 'acs_entrances', 'connected_account_ids', ], type: 'object', }, type: 'array', }, }, required: ['spaces', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/seam/partner/v1/building_blocks/spaces/auto_map', tags: [], 'x-fern-sdk-group-name': [ 'seam', 'partner', 'v1', 'building_blocks', 'spaces', ], 'x-fern-sdk-method-name': 'auto_map', 'x-fern-sdk-return-value': 'spaces', 'x-response-key': 'spaces', 'x-title': 'Do Auto-Mapping for Partner Resources that Map to Spaces', 'x-undocumented': 'Partner building blocks/UI only.', }, }, '/seam/webhooks/[provider]/[subscription_id]': { post: { description: 'Receives an inbound webhook delivery for a provider subscription.', operationId: 'seamWebhooksByProviderBySubscriptionIdPost', parameters: [ { in: 'query', name: 'provider', required: true, schema: { type: 'string' }, }, { in: 'query', name: 'subscription_id', required: true, schema: { type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, summary: '/seam/webhooks/[provider]/[subscription_id]', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['seam', 'webhooks', '[provider]'], 'x-fern-sdk-method-name': 'by_subscription_id', 'x-response-key': null, 'x-title': 'Receive a Provider Webhook', 'x-undocumented': 'Internal endpoint for inbound provider webhooks', }, }, '/seam/webhooks/v1/preview_event': { post: { description: 'Returns the event payload that `/seam/webhooks/v1/simulate_event` would send for a specified event type, without creating an event or delivering a [webhook](https://www.seam.co/docs/developer-tools/webhooks). Only applicable within [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).\n\nSeam fills in the payload the same way that `simulate_event` does, using real resources from the workspace where it can and placeholder values otherwise, and reports which fields it filled in each way. Provide `payload` to set any field explicitly.', operationId: 'seamWebhooksV1PreviewEventPost', requestBody: { content: { 'application/json': { schema: { properties: { event_type: { description: 'Type of the event that you want to preview.', enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, payload: { additionalProperties: {}, default: {}, description: 'Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in.', type: 'object', }, }, required: ['event_type'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, payload: { additionalProperties: { $ref: '#/components/schemas/access_code', }, description: 'Event payload that `simulate_event` would send for this event type.', type: 'object', }, resolved_fields: { description: 'Payload fields that Seam set to a real resource in your workspace.', items: { type: 'string' }, type: 'array', }, subscribed_webhook_count: { description: 'Number of webhooks in your workspace that are subscribed to this event type and would therefore receive this event. If this is `0`, no webhook receives the event. `null` if Seam could not determine the count.', format: 'float', nullable: true, type: 'number', }, synthesized_fields: { description: 'Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one.', items: { type: 'string' }, type: 'array', }, }, required: [ 'payload', 'resolved_fields', 'subscribed_webhook_count', 'synthesized_fields', 'ok', ], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/webhooks/v1/preview_event', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['seam', 'webhooks', 'v1'], 'x-fern-sdk-method-name': 'preview_event', 'x-response-key': null, 'x-title': 'Preview a Simulated Event', 'x-undocumented': 'Unreleased. Seam Wizard and internal webhook testing only.', }, }, '/seam/webhooks/v1/simulate_event': { post: { description: 'Creates an event of a specified type and delivers it to every [webhook](https://www.seam.co/docs/developer-tools/webhooks) in the workspace that is subscribed to that event type, so that a developer can test their webhook endpoint against any event Seam can send. Only applicable within [sandbox workspaces](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).\n\nSeam fills in the event payload, using real resources from the workspace where it can and placeholder values otherwise. Provide `payload` to set any field explicitly.\n\nThis creates a real event and delivers a real webhook, but does not change the state of any device or other resource. For example, simulating a `lock.unlocked` event does not unlock the lock.', operationId: 'seamWebhooksV1SimulateEventPost', requestBody: { content: { 'application/json': { schema: { properties: { event_type: { description: 'Type of the event that you want to send to your webhooks.', enum: [ 'access_code.created', 'access_code.changed', 'access_code.name_changed', 'access_code.code_changed', 'access_code.time_frame_changed', 'access_code.mutations_requested', 'access_code.scheduled_on_device', 'access_code.set_on_device', 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', 'access_code.issued', 'access_code.delay_in_issuing', 'access_code.failed_to_issue', 'access_code.failed_to_update', 'access_code.failed_to_delete', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', 'access_code.deleted_external_to_seam', 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', 'access_grant.created', 'access_grant.deleted', 'access_grant.access_granted_to_all_doors', 'access_grant.access_granted_to_door', 'access_grant.access_to_door_lost', 'access_grant.access_times_changed', 'access_grant.could_not_create_requested_access_methods', 'access_method.issued', 'access_method.revoked', 'access_method.card_encoding_required', 'access_method.deleted', 'access_method.reissued', 'access_method.created', 'access_method.delay_in_issuing', 'access_method.failed_to_issue', 'acs_system.connected', 'acs_system.added', 'acs_system.disconnected', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', 'acs_credential.invalidated', 'acs_user.created', 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', 'acs_access_group.deleted', 'acs_entrance.added', 'acs_entrance.removed', 'client_session.deleted', 'connected_account.connected', 'connected_account.created', 'connected_account.successful_login', 'connected_account.disconnected', 'connected_account.completed_first_sync', 'connected_account.deleted', 'connected_account.completed_first_sync_after_reconnection', 'connected_account.reauthorization_requested', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', 'action_attempt.simulate_keypad_code_entry.succeeded', 'action_attempt.simulate_keypad_code_entry.failed', 'action_attempt.simulate_manual_lock_via_keypad.succeeded', 'action_attempt.simulate_manual_lock_via_keypad.failed', 'connect_webview.login_succeeded', 'connect_webview.login_failed', 'device.connected', 'device.added', 'device.converted_to_unmanaged', 'device.unmanaged.converted_to_managed', 'device.unmanaged.connected', 'device.disconnected', 'device.unmanaged.disconnected', 'device.tampered', 'device.low_battery', 'device.battery_status_changed', 'device.removed', 'device.deleted', 'device.third_party_integration_detected', 'device.third_party_integration_no_longer_detected', 'device.salto.privacy_mode_activated', 'device.salto.privacy_mode_deactivated', 'device.connection_became_flaky', 'device.connection_stabilized', 'device.error.subscription_required', 'device.error.subscription_required.resolved', 'device.accessory_keypad_connected', 'device.accessory_keypad_disconnected', 'noise_sensor.noise_threshold_triggered', 'lock.locked', 'lock.unlocked', 'lock.access_denied', 'lock.jammed', 'lock.door_opened', 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', 'thermostat.temperature_changed', 'pool.temperature_changed', 'pool.temperature_reached_set_point', 'pool.manually_adjusted', 'device.name_changed', 'camera.activated', 'device.doorbell_rang', 'enrollment_automation.deleted', 'phone.deactivated', 'space.device_membership_changed', 'space.created', 'space.deleted', ], type: 'string', }, payload: { additionalProperties: {}, default: {}, description: 'Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in.', type: 'object', }, }, required: ['event_type'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { event: { $ref: '#/components/schemas/event' }, ok: { type: 'boolean' }, simulation: { properties: { resolved_fields: { description: 'Payload fields that Seam set to a real resource in your workspace.', items: { type: 'string' }, type: 'array', }, subscribed_webhook_count: { description: 'Number of webhooks in your workspace that are subscribed to this event type and therefore receive this event. If this is `0`, no webhook receives the event. `null` if Seam could not determine the count.', format: 'float', nullable: true, type: 'number', }, synthesized_fields: { description: 'Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one.', items: { type: 'string' }, type: 'array', }, }, required: [ 'resolved_fields', 'subscribed_webhook_count', 'synthesized_fields', ], type: 'object', }, }, required: ['event', 'simulation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/seam/webhooks/v1/simulate_event', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['seam', 'webhooks', 'v1'], 'x-fern-sdk-method-name': 'simulate_event', 'x-fern-sdk-return-value': 'event', 'x-response-key': 'event', 'x-title': 'Simulate Sending an Event to a Webhook', 'x-undocumented': 'Unreleased. Seam Wizard and internal webhook testing only.', }, }, '/seam/wizard/v1/session': { post: { description: "Exchanges a Seam API key for a short-lived wizard inference token. The Seam\nWizard CLI calls this once, then sends the returned token as the bearer to the\ninference proxy. The session also carries the workspace org's Console-collected\nonboarding answers (or null) so the CLI can pre-fill its integration plan.", operationId: 'seamWizardV1SessionPost', requestBody: { content: { 'application/json': { schema: { properties: {}, type: 'object' } }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, wizard_session: { properties: { expires_at: { type: 'string' }, onboarding: { nullable: true, properties: { build_target: { nullable: true, type: 'string' }, device_categories: { items: { type: 'string' }, nullable: true, type: 'array', }, embed_customer_portal: { nullable: true, type: 'boolean', }, org_type: { nullable: true, type: 'string' }, primary_goal: { nullable: true, type: 'string' }, use_case: { nullable: true, type: 'string' }, }, required: [ 'org_type', 'primary_goal', 'use_case', 'build_target', 'embed_customer_portal', 'device_categories', ], type: 'object', }, token: { type: 'string' }, }, required: ['token', 'expires_at', 'onboarding'], type: 'object', }, }, required: ['wizard_session', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [{ api_key: [] }, { pat_with_workspace: [] }], summary: '/seam/wizard/v1/session', tags: [], 'x-fern-sdk-group-name': ['seam', 'wizard', 'v1'], 'x-fern-sdk-method-name': 'session', 'x-fern-sdk-return-value': 'wizard_session', 'x-response-key': 'wizard_session', 'x-title': 'Create a Wizard Session', 'x-undocumented': 'Seam Wizard CLI only.', }, }, '/spaces/add_acs_entrances': { put: { description: 'Adds [entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) to a specific space.', operationId: 'spacesAddAcsEntrancesPut', requestBody: { content: { 'application/json': { schema: { properties: { acs_entrance_ids: { description: 'IDs of the entrances that you want to add to the space.', items: { format: 'uuid', type: 'string' }, minItems: 1, type: 'array', }, space_id: { description: 'ID of the space to which you want to add entrances.', format: 'uuid', type: 'string', }, }, required: ['space_id', 'acs_entrance_ids'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/add_acs_entrances', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'add_acs_entrances', 'x-response-key': null, 'x-title': 'Add Entrances to a Space', }, }, '/spaces/add_connected_account': { put: { description: 'Adds a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) to a specific space.', operationId: 'spacesAddConnectedAccountPut', requestBody: { content: { 'application/json': { schema: { properties: { connected_account_id: { description: 'ID of the connected account that you want to add to the space.', format: 'uuid', type: 'string', }, space_id: { description: 'ID of the space to which you want to add the connected account.', format: 'uuid', type: 'string', }, }, required: ['space_id', 'connected_account_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/add_connected_account', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'add_connected_account', 'x-response-key': null, 'x-title': 'Add a Connected Account to a Space', }, }, '/spaces/add_devices': { put: { description: 'Adds devices to a specific space.', operationId: 'spacesAddDevicesPut', requestBody: { content: { 'application/json': { schema: { properties: { device_ids: { description: 'IDs of the devices that you want to add to the space.', items: { format: 'uuid', type: 'string' }, minItems: 1, type: 'array', }, space_id: { description: 'ID of the space to which you want to add devices.', format: 'uuid', type: 'string', }, }, required: ['space_id', 'device_ids'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/add_devices', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'add_devices', 'x-response-key': null, 'x-title': 'Add Devices to a Space', }, }, '/spaces/create': { post: { description: 'Creates a new space.', operationId: 'spacesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { acs_entrance_ids: { description: 'IDs of the entrances that you want to add to the new space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, connected_account_ids: { description: 'IDs of connected accounts to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account(s) a space came from.', items: { format: 'uuid', type: 'string' }, type: 'array', }, customer_data: { description: 'Reservation/stay-related defaults for the space.', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, customer_key: { description: 'Customer key for which you want to create the space.', minLength: 1, type: 'string', }, device_ids: { description: 'IDs of the devices that you want to add to the new space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, name: { description: 'Name of the space that you want to create.', type: 'string', }, space_key: { description: 'Unique key for the space within the workspace.', minLength: 1, type: 'string', }, }, required: ['name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, space: { $ref: '#/components/schemas/space' }, }, required: ['space', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/create', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'space', 'x-response-key': 'space', 'x-title': 'Create a Space', }, }, '/spaces/delete': { delete: { description: 'Deletes a space.', operationId: 'spacesDeleteDelete', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/delete', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Space', }, }, '/spaces/get': { get: { description: 'Gets a space.', operationId: 'spacesGetGet', parameters: [ { in: 'query', name: 'space_id', schema: { description: 'ID of the space that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'space_key', schema: { description: 'Unique key of the space that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, space: { $ref: '#/components/schemas/space' }, }, required: ['space', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/spaces/get', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'space', 'x-has-required-parameters': true, 'x-response-key': 'space', 'x-title': 'Get a Space', }, }, '/spaces/get_related': { get: { description: 'Gets all related resources for one or more Spaces.', operationId: 'spacesGetRelatedGet', parameters: [ { in: 'query', name: 'space_ids', schema: { description: 'IDs of the spaces that you want to get along with their related resources.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'space_keys', schema: { description: 'Keys of the spaces that you want to get along with their related resources.', items: { minLength: 1, type: 'string' }, type: 'array', }, }, { in: 'query', name: 'include', schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'access_methods', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'exclude', schema: { items: { enum: [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'access_methods', ], type: 'string', }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { batch: { description: 'A batch of workspace resources.', properties: { access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, connected_accounts: { items: { $ref: '#/components/schemas/connected_account', }, type: 'array', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, }, type: 'object', 'x-route-path': '/workspaces', }, ok: { type: 'boolean' }, }, required: ['batch', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/spaces/get_related', tags: [], 'x-batch-keys': [ 'spaces', 'devices', 'acs_entrances', 'connected_accounts', 'acs_systems', 'access_methods', ], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'get_related', 'x-fern-sdk-return-value': 'batch', 'x-has-required-parameters': true, 'x-response-key': 'batch', 'x-title': 'Get related Space resources', }, }, '/spaces/list': { get: { description: 'Returns a list of all spaces.', operationId: 'spacesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list spaces.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`, `space_key`, or `customer_key`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account.', format: 'uuid', type: 'string', 'x-draft': 'Needs review.', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'space_key', schema: { description: 'Filter spaces by space_key.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'parent_space_id', schema: { description: 'Filter spaces to only include those whose parent space has the specified `parent_space_id`.', format: 'uuid', type: 'string', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'parent_space_key', schema: { description: 'Filter spaces to only include those whose parent space has the specified `parent_space_key`.', minLength: 1, type: 'string', 'x-undocumented': 'Only used internally.', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', format: 'float', type: 'number', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, }, required: ['spaces', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/spaces/list', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'spaces', 'x-response-key': 'spaces', 'x-title': 'List Spaces', }, }, '/spaces/remove_acs_entrances': { delete: { description: 'Removes [entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) from a specific space.', operationId: 'spacesRemoveAcsEntrancesDelete', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space from which you want to remove entrances.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_entrance_ids', required: true, schema: { description: 'IDs of the entrances that you want to remove from the space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/remove_acs_entrances', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'remove_acs_entrances', 'x-response-key': null, 'x-title': 'Remove Entrances from a Space', }, }, '/spaces/remove_connected_account': { delete: { description: 'Removes a [connected account](https://www.seam.co/docs/core-concepts/connected-accounts) from a specific space.', operationId: 'spacesRemoveConnectedAccountDelete', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space from which you want to remove the connected account.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connected_account_id', required: true, schema: { description: 'ID of the connected account that you want to remove from the space.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/remove_connected_account', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'remove_connected_account', 'x-response-key': null, 'x-title': 'Remove a Connected Account from a Space', }, }, '/spaces/remove_devices': { delete: { description: 'Removes devices from a specific space.', operationId: 'spacesRemoveDevicesDelete', parameters: [ { in: 'query', name: 'space_id', required: true, schema: { description: 'ID of the space from which you want to remove devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_ids', required: true, schema: { description: 'IDs of the devices that you want to remove from the space.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/remove_devices', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'remove_devices', 'x-response-key': null, 'x-title': 'Remove Devices from a Space', }, }, '/spaces/update': { patch: { description: 'Updates an existing space.', operationId: 'spacesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { acs_entrance_ids: { description: 'IDs of the entrances that you want to set for the space. If specified, this will replace all existing entrances.', items: { format: 'uuid', type: 'string' }, type: 'array', }, customer_data: { description: 'Reservation/stay-related defaults for the space. Only the keys you provide are updated; omit a key to leave it unchanged. Pass null on a key to clear it.', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, device_ids: { description: 'IDs of the devices that you want to set for the space. If specified, this will replace all existing devices.', items: { format: 'uuid', type: 'string' }, type: 'array', }, geolocation: { description: 'Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space.', nullable: true, properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', maximum: 90, minimum: -90, type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', maximum: 180, minimum: -180, type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Name of the space.', type: 'string' }, parent_space_id: { description: 'Reassign this space to the parent space (site) with this `parent_space_id`.', format: 'uuid', type: 'string', 'x-undocumented': 'Only used internally.', }, parent_space_key: { description: 'Reassign this space to the parent space (site) with this `parent_space_key`.', minLength: 1, type: 'string', 'x-undocumented': 'Only used internally.', }, space_id: { description: 'ID of the space that you want to update.', format: 'uuid', type: 'string', }, space_key: { description: 'Unique key of the space that you want to update.', minLength: 1, type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, space: { $ref: '#/components/schemas/space' }, }, required: ['space', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session_with_customer: [] }, ], summary: '/spaces/update', tags: [], 'x-fern-sdk-group-name': ['spaces'], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'space', 'x-response-key': 'space', 'x-title': 'Update a Space', }, }, '/speakers/list_favorites': { get: { description: "Returns the favorites saved on a speaker's account in the speaker manufacturer's app, such as playlists, albums and radio stations. To play one, pass its `favorite_id` to `/speakers/play_favorite`. To check whether a speaker supports favorites, use `device.can_play_speaker_favorite`.", operationId: 'speakersListFavoritesGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the speaker for which you want to list favorites.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, speaker_favorites: { items: { properties: { description: { description: 'Description of the favorite, such as its artist or station.', type: 'string', }, favorite_id: { description: 'ID of the favorite. Pass it to `/speakers/play_favorite`.', type: 'string', }, image_url: { description: "URL of the favorite's artwork.", type: 'string', }, name: { description: 'Name of the favorite.', type: 'string', }, service_name: { description: 'Name of the music service that provides the favorite.', type: 'string', }, }, required: ['favorite_id', 'name'], type: 'object', }, type: 'array', }, }, required: ['speaker_favorites', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/list_favorites', tags: [], 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'list_favorites', 'x-fern-sdk-return-value': 'speaker_favorites', 'x-response-key': 'speaker_favorites', 'x-title': 'List Speaker Favorites', 'x-undocumented': 'Unreleased.', }, }, '/speakers/mute': { post: { description: 'Mutes a specified speaker. To check whether a speaker supports muting, use `device.can_mute_speaker`.', operationId: 'speakersMutePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker that you want to mute.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/mute', tags: [], 'x-action-attempt-type': 'SET_SPEAKER_MUTE', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'mute', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Mute a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/pause': { post: { description: 'Pauses playback on a specified speaker. Playback also pauses on the speakers grouped with it, and the action attempt result lists every affected speaker. To check whether a speaker supports pausing playback, use `device.can_pause_speaker_playback`.', operationId: 'speakersPausePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker on which you want to pause playback.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/pause', tags: [], 'x-action-attempt-type': 'PAUSE_SPEAKER_PLAYBACK', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'pause', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Pause Playback on a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/play_audio_clip': { post: { description: 'Plays a short audio clip from a URL on a speaker, over whatever the speaker is playing. Use it for a welcome message or announcement. To check whether a speaker supports audio clips, use `device.can_play_speaker_audio_clip`.', operationId: 'speakersPlayAudioClipPost', requestBody: { content: { 'application/json': { schema: { properties: { audio_url: { description: 'Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself, so it must be reachable from the internet.', format: 'uri', maxLength: 2048, type: 'string', }, device_id: { description: 'ID of the speaker on which you want to play the audio clip.', format: 'uuid', type: 'string', }, volume: { description: "Volume at which to play the clip, on the speaker's native volume scale. If you omit this parameter, the clip plays at the speaker's current volume.", format: 'float', type: 'number', }, }, required: ['device_id', 'audio_url'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/play_audio_clip', tags: [], 'x-action-attempt-type': 'PLAY_SPEAKER_AUDIO_CLIP', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'play_audio_clip', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Play an Audio Clip on a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/play_chime': { post: { description: 'Plays a short chime on a specified speaker. To check whether a speaker supports playing a chime, use `device.can_play_speaker_chime`.', operationId: 'speakersPlayChimePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker on which you want to play a chime.', format: 'uuid', type: 'string', }, volume: { description: "Volume at which to play the chime, on the speaker's native volume scale. If you omit this parameter, the chime plays at the speaker's current volume.", format: 'float', type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/play_chime', tags: [], 'x-action-attempt-type': 'PLAY_SPEAKER_CHIME', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'play_chime', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Play a Chime on a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/play_favorite': { post: { description: 'Replaces what a speaker is playing with one of its favorites and starts playback. Speakers grouped with the requested speaker play it too. To check whether a speaker supports favorites, use `device.can_play_speaker_favorite`.', operationId: 'speakersPlayFavoritePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker on which you want to play the favorite.', format: 'uuid', type: 'string', }, favorite_id: { description: 'ID of the favorite that you want to play, from `/speakers/list_favorites`.', minLength: 1, type: 'string', }, shuffle: { description: "Whether to shuffle the favorite's tracks. If you omit this parameter, the speaker keeps its current shuffle setting.", type: 'boolean', }, }, required: ['device_id', 'favorite_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/play_favorite', tags: [], 'x-action-attempt-type': 'PLAY_SPEAKER_FAVORITE', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'play_favorite', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Play a Favorite on a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/resume': { post: { description: 'Resumes playback on a specified speaker. Playback also resumes on the speakers grouped with it, and the action attempt result lists every affected speaker. To check whether a speaker supports resuming playback, use `device.can_resume_speaker_playback`.', operationId: 'speakersResumePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker on which you want to resume playback.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/resume', tags: [], 'x-action-attempt-type': 'RESUME_SPEAKER_PLAYBACK', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'resume', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Resume Playback on a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/set_volume': { post: { description: "Sets the volume of a specified speaker. The volume must be between the speaker's `properties.speaker.min_volume` and `properties.speaker.max_volume`, in increments of `properties.speaker.volume_step`. To check whether a speaker supports setting its volume, use `device.can_set_speaker_volume`.", operationId: 'speakersSetVolumePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker for which you want to set the volume.', format: 'uuid', type: 'string', }, volume: { description: "Volume that you want to set, on the speaker's native volume scale.", format: 'float', type: 'number', }, }, required: ['device_id', 'volume'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/set_volume', tags: [], 'x-action-attempt-type': 'SET_SPEAKER_VOLUME', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'set_volume', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set the Volume of a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/speakers/unmute': { post: { description: 'Unmutes a specified speaker. To check whether a speaker supports unmuting, use `device.can_unmute_speaker`.', operationId: 'speakersUnmutePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the speaker that you want to unmute.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/speakers/unmute', tags: [], 'x-action-attempt-type': 'SET_SPEAKER_MUTE', 'x-fern-sdk-group-name': ['speakers'], 'x-fern-sdk-method-name': 'unmute', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Unmute a Speaker', 'x-undocumented': 'Unreleased.', }, }, '/thermostats/activate_climate_preset': { post: { description: 'Activates a specified [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsActivateClimatePresetPost', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Climate preset key of the climate preset that you want to activate.', minLength: 1, type: 'string', }, device_id: { description: 'ID of the thermostat device for which you want to activate a climate preset.', format: 'uuid', type: 'string', }, }, required: ['device_id', 'climate_preset_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/activate_climate_preset', tags: ['/thermostats'], 'x-action-attempt-type': 'ACTIVATE_CLIMATE_PRESET', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'activate_climate_preset', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Activate a Climate Preset', }, }, '/thermostats/activate_weekly_program': { post: { description: "Returns a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to its [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs), the schedule that is configured on the device itself, releasing any hold that Seam has set. Seam stops managing the thermostat's climate until you [activate a climate preset](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings), make a direct climate setting change, or one of the thermostat's [scheduled](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) presets reaches its activation time.", operationId: 'thermostatsActivateWeeklyProgramPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device that you want to return to its weekly program.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/activate_weekly_program', tags: ['/thermostats'], 'x-action-attempt-type': 'ACTIVATE_WEEKLY_PROGRAM', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'activate_weekly_program', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Activate the Weekly Program', }, }, '/thermostats/cool': { post: { description: 'Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [cool mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).', operationId: 'thermostatsCoolPost', requestBody: { content: { 'application/json': { schema: { properties: { cooling_set_point_celsius: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device that you want to set to cool mode.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/cool', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_HVAC_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'cool', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set to Cool Mode', }, }, '/thermostats/create_climate_preset': { post: { description: 'Creates a [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsCreateClimatePresetPost', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, climate_preset_mode: { description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want create a climate preset.', format: 'uuid', type: 'string', }, ecobee_metadata: { description: '\n Metadata specific to the Ecobee climate, if applicable.\n ', properties: { climate_ref: { description: 'Reference to the Ecobee climate, if applicable.', type: 'string', }, is_optimized: { description: 'Indicates if the climate preset is optimized by Ecobee.', type: 'boolean', }, owner: { description: 'Indicates whether the climate preset is owned by the user or the system.', enum: ['user', 'system'], type: 'string', }, }, type: 'object', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, manual_override_allowed: { default: true, deprecated: true, description: "Indicates whether a person at the thermostat or using the API can change the thermostat's settings.", type: 'boolean', 'x-deprecated': "Use 'thermostat_schedule.is_override_allowed'", 'x-end-of-life': '2026-11-09', }, name: { default: null, description: 'User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', nullable: true, type: 'string', }, }, required: ['device_id', 'climate_preset_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { api_key: [] }, ], summary: '/thermostats/create_climate_preset', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'create_climate_preset', 'x-response-key': null, 'x-title': 'Create a Climate Preset', }, }, '/thermostats/daily_programs/create': { post: { description: 'Creates a new thermostat daily program. A daily program consists of a set of periods, where each period includes a start time and the key of a configured climate preset. Once you have defined a daily program, you can assign it to one or more days within a weekly program.', operationId: 'thermostatsDailyProgramsCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device for which you want to create a daily program.', format: 'uuid', type: 'string', }, name: { description: 'Name of the thermostat daily program.', type: 'string', }, periods: { description: 'Array of thermostat daily program periods.', items: { description: 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.', properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.', type: 'string', }, starts_at_time: { description: 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$', type: 'string', }, }, required: ['starts_at_time', 'climate_preset_key'], type: 'object', }, type: 'array', }, }, required: ['device_id', 'name', 'periods'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, thermostat_daily_program: { $ref: '#/components/schemas/thermostat_daily_program', }, }, required: ['thermostat_daily_program', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/daily_programs/create', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'daily_programs'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'thermostat_daily_program', 'x-response-key': 'thermostat_daily_program', 'x-title': 'Create a Thermostat Daily Program', }, }, '/thermostats/daily_programs/delete': { delete: { description: 'Deletes a thermostat daily program.', operationId: 'thermostatsDailyProgramsDeleteDelete', parameters: [ { in: 'query', name: 'thermostat_daily_program_id', required: true, schema: { description: 'ID of the thermostat daily program that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/daily_programs/delete', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'daily_programs'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Thermostat Daily Program', }, }, '/thermostats/daily_programs/update': { patch: { description: 'Updates a specified thermostat daily program. The periods that you specify overwrite any existing periods for the daily program.', operationId: 'thermostatsDailyProgramsUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { name: { description: 'Name of the thermostat daily program that you want to update.', type: 'string', }, periods: { description: 'Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program.', items: { description: 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.', properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.', type: 'string', }, starts_at_time: { description: 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$', type: 'string', }, }, required: ['starts_at_time', 'climate_preset_key'], type: 'object', }, type: 'array', }, thermostat_daily_program_id: { description: 'ID of the thermostat daily program that you want to update.', format: 'uuid', type: 'string', }, }, required: ['thermostat_daily_program_id', 'name', 'periods'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/daily_programs/update', tags: ['/thermostats'], 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS', 'x-fern-sdk-group-name': ['thermostats', 'daily_programs'], 'x-fern-sdk-method-name': 'update', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Update a Thermostat Daily Program', }, }, '/thermostats/delete_climate_preset': { delete: { description: 'Deletes a specified [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsDeleteClimatePresetDelete', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the thermostat device for which you want to delete a climate preset.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'climate_preset_key', required: true, schema: { description: 'Climate preset key of the climate preset that you want to delete.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/delete_climate_preset', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'delete_climate_preset', 'x-response-key': null, 'x-title': 'Delete a Climate Preset', }, }, '/thermostats/get': { get: { description: 'Returns a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats). **Deprecated:** Will be removed. Use `/devices/get` instead.', operationId: 'thermostatsGetGet', parameters: [ { in: 'query', name: 'device_id', schema: { description: 'ID of the thermostat device that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'name', schema: { description: 'Name of the thermostat device that you want to retrieve.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, thermostat: { $ref: '#/components/schemas/device' }, }, required: ['thermostat', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/get', tags: ['/thermostats'], 'x-deprecated': 'Use `/devices/get` instead.', 'x-end-of-life': '2026-11-09', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'thermostat', 'x-has-required-parameters': true, 'x-response-key': 'thermostat', 'x-title': 'Get a Thermostat', 'x-undocumented': 'Will be removed.', }, }, '/thermostats/heat': { post: { description: 'Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [heat mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).', operationId: 'thermostatsHeatPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device that you want to set to heat mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/heat', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_HVAC_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'heat', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set to Heat Mode', }, }, '/thermostats/heat_cool': { post: { description: 'Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [heat-cool ("auto") mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).', operationId: 'thermostatsHeatCoolPost', requestBody: { content: { 'application/json': { schema: { properties: { cooling_set_point_celsius: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device that you want to set to heat-cool mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/heat_cool', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_HVAC_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'heat_cool', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set to Heat-Cool (Auto) Mode', }, }, '/thermostats/list': { get: { description: 'Returns a list of all [thermostats](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list devices.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'connected_account_id', schema: { description: 'ID of the connected account for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'connect_webview_id', schema: { description: 'ID of the Connect Webview for which you want to list devices.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_type', schema: { description: 'Device type by which you want to filter thermostat devices.', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, }, { in: 'query', name: 'device_types', schema: { description: 'Array of device types by which you want to filter thermostat devices.', items: { description: 'Device type for thermostats.\n ', enum: [ 'ecobee_thermostat', 'nest_thermostat', 'honeywell_resideo_thermostat', 'tado_thermostat', 'sensi_thermostat', 'sensibo_thermostat', 'cielo_thermostat', 'smartthings_thermostat', ], type: 'string', }, type: 'array', }, }, { in: 'query', name: 'manufacturer', schema: { description: 'Manufacturer by which you want to filter thermostat devices.', enum: [ 'ecobee', 'honeywell_resideo', 'cielo', 'nest', 'sensi', 'sensibo', 'smartthings', 'tado', ], type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, thermostats: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, }, required: ['thermostats', 'devices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { support_read_only_token: [] }, ], summary: '/thermostats/list', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Thermostats', }, }, '/thermostats/off': { post: { description: 'Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to ["off" mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).', operationId: 'thermostatsOffPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device that you want to set to off mode.', format: 'uuid', type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/off', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_HVAC_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'off', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set to Off Mode', }, }, '/thermostats/schedules/create': { post: { description: 'Creates a new [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSchedulesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the new thermostat schedule.', minLength: 1, type: 'string', }, device_id: { description: 'ID of the thermostat device for which you want to create a schedule.', type: 'string', }, ends_at: { description: 'Date and time at which the new thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, is_override_allowed: { description: "Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the new schedule is active. See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', }, max_override_period_minutes: { description: "Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", exclusiveMinimum: true, minimum: 0, nullable: true, type: 'integer', }, name: { description: 'Name of the thermostat schedule.', type: 'string', }, starts_at: { description: 'Date and time at which the new thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, }, required: [ 'device_id', 'climate_preset_key', 'starts_at', 'ends_at', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, thermostat_schedule: { $ref: '#/components/schemas/thermostat_schedule', }, }, required: ['thermostat_schedule', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { api_key: [] }, ], summary: '/thermostats/schedules/create', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'schedules'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'thermostat_schedule', 'x-response-key': 'thermostat_schedule', 'x-title': 'Create a Thermostat Schedule', }, }, '/thermostats/schedules/delete': { delete: { description: 'Deletes a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSchedulesDeleteDelete', parameters: [ { in: 'query', name: 'thermostat_schedule_id', required: true, schema: { description: 'ID of the thermostat schedule that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/schedules/delete', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'schedules'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Thermostat Schedule', }, }, '/thermostats/schedules/get': { get: { description: 'Returns a specified [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', operationId: 'thermostatsSchedulesGetGet', parameters: [ { in: 'query', name: 'thermostat_schedule_id', required: true, schema: { description: 'ID of the thermostat schedule that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, thermostat_schedule: { $ref: '#/components/schemas/thermostat_schedule', }, }, required: ['thermostat_schedule', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/thermostats/schedules/get', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'schedules'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'thermostat_schedule', 'x-response-key': 'thermostat_schedule', 'x-title': 'Get a Thermostat Schedule', }, }, '/thermostats/schedules/list': { get: { description: 'Returns a list of all [thermostat schedules](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSchedulesListGet', parameters: [ { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the thermostat device for which you want to list schedules.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identifier_key', required: false, schema: { description: 'User identifier key by which to filter the list of returned thermostat schedules.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, thermostat_schedules: { items: { $ref: '#/components/schemas/thermostat_schedule', }, type: 'array', }, }, required: ['thermostat_schedules', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/thermostats/schedules/list', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'schedules'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'thermostat_schedules', 'x-response-key': 'thermostat_schedules', 'x-title': 'List Thermostat Schedules', }, }, '/thermostats/schedules/update': { patch: { description: 'Updates a specified [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', operationId: 'thermostatsSchedulesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.', minLength: 1, type: 'string', }, ends_at: { description: 'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, is_override_allowed: { description: "Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the schedule is active. See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', }, max_override_period_minutes: { description: "Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", exclusiveMinimum: true, minimum: 0, nullable: true, type: 'integer', }, name: { description: 'Name of the thermostat schedule.', type: 'string', }, starts_at: { description: 'Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', type: 'string', }, thermostat_schedule_id: { description: 'ID of the thermostat schedule that you want to update.', format: 'uuid', type: 'string', }, }, required: ['thermostat_schedule_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/schedules/update', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'schedules'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Thermostat Schedule', }, }, '/thermostats/set_fallback_climate_preset': { post: { description: 'Sets a specified [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) as the ["fallback"](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets/setting-the-fallback-climate-preset) preset for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSetFallbackClimatePresetPost', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Climate preset key of the climate preset that you want to set as the fallback climate preset.', minLength: 1, type: 'string', }, device_id: { description: 'ID of the thermostat device for which you want to set the fallback climate preset.', format: 'uuid', type: 'string', }, }, required: ['device_id', 'climate_preset_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/set_fallback_climate_preset', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'set_fallback_climate_preset', 'x-response-key': null, 'x-title': 'Set the Fallback Climate Preset', }, }, '/thermostats/set_fan_mode': { post: { description: 'Sets the [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSetFanModePost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device for which you want to set the fan mode.', format: 'uuid', type: 'string', }, fan_mode: { deprecated: true, description: 'Fan mode setting for the thermostat, such as `auto`, `on`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', 'x-deprecated': 'Use `fan_mode_setting` instead.', }, fan_mode_setting: { description: '[Fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings) that you want to set for the thermostat.', enum: ['auto', 'on', 'circulate'], type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/set_fan_mode', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_FAN_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'set_fan_mode', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set the Fan Mode Setting', }, }, '/thermostats/set_hvac_mode': { post: { description: 'Sets the [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsSetHvacModePost', requestBody: { content: { 'application/json': { schema: { discriminator: { propertyName: 'hvac_mode_setting' }, oneOf: [ { properties: { device_id: { description: 'ID of the thermostat device for which you want to set the HVAC mode.', format: 'uuid', type: 'string', }, hvac_mode_setting: { enum: ['off'], type: 'string' }, }, required: ['hvac_mode_setting', 'device_id'], type: 'object', }, { properties: { cooling_set_point_celsius: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want to set the HVAC mode.', format: 'uuid', type: 'string', }, hvac_mode_setting: { enum: ['cool'], type: 'string' }, }, required: ['hvac_mode_setting', 'device_id'], type: 'object', }, { properties: { device_id: { description: 'ID of the thermostat device for which you want to set the HVAC mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, hvac_mode_setting: { enum: ['heat'], type: 'string' }, }, required: ['hvac_mode_setting', 'device_id'], type: 'object', }, { properties: { cooling_set_point_celsius: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: '[Cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `cooling_set_point` parameters.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want to set the HVAC mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: '[Heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to set for the thermostat. You must set one of the `heating_set_point` parameters.', format: 'float', type: 'number', }, hvac_mode_setting: { enum: ['heat_cool'], type: 'string', }, }, required: ['hvac_mode_setting', 'device_id'], type: 'object', }, { properties: { device_id: { description: 'ID of the thermostat device for which you want to set the HVAC mode.', format: 'uuid', type: 'string', }, hvac_mode_setting: { enum: ['eco'], type: 'string' }, }, required: ['hvac_mode_setting', 'device_id'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/set_hvac_mode', tags: ['/thermostats'], 'x-action-attempt-type': 'SET_HVAC_MODE', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'set_hvac_mode', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Set the HVAC Mode', }, }, '/thermostats/set_temperature_threshold': { patch: { description: 'Sets a [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) for a specified thermostat. Seam emits a `thermostat.temperature_threshold_exceeded` event and adds a warning on a thermostat if it reports a temperature outside the threshold range.', operationId: 'thermostatsSetTemperatureThresholdPatch', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device for which you want to set a temperature threshold.', format: 'uuid', type: 'string', }, lower_limit_celsius: { default: null, description: 'Lower temperature limit in in °C. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both.', format: 'float', nullable: true, type: 'number', }, lower_limit_fahrenheit: { default: null, description: 'Lower temperature limit in in °F. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both.', format: 'float', nullable: true, type: 'number', }, upper_limit_celsius: { default: null, description: 'Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both.', format: 'float', nullable: true, type: 'number', }, upper_limit_fahrenheit: { default: null, description: 'Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both.', format: 'float', nullable: true, type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/thermostats/set_temperature_threshold', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'set_temperature_threshold', 'x-response-key': null, 'x-title': 'Set a Temperature Threshold', }, }, '/thermostats/simulate/hvac_mode_adjusted': { post: { description: 'Simulates having adjusted the [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) for a [thermostat](https://www.seam.co/docs/capability-guides/thermostats). Only applicable for [sandbox devices](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your Thermostat App with Simulate Endpoints](https://www.seam.co/docs/capability-guides/thermostats/testing-your-thermostat-app-with-simulate-endpoints).', operationId: 'thermostatsSimulateHvacModeAdjustedPost', requestBody: { content: { 'application/json': { schema: { discriminator: { propertyName: 'hvac_mode' }, oneOf: [ { properties: { device_id: { description: 'ID of the thermostat device for which you want to simulate having adjusted the HVAC mode.', format: 'uuid', type: 'string', }, hvac_mode: { description: 'HVAC mode that you want to simulate.', enum: ['off'], type: 'string', }, }, required: ['hvac_mode', 'device_id'], type: 'object', }, { properties: { cooling_set_point_celsius: { description: 'Cooling [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to simulate. You must set `cooling_set_point_celsius` or `cooling_set_point_fahrenheit`.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Cooling [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to simulate. You must set `cooling_set_point_fahrenheit` or `cooling_set_point_celsius`.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want to simulate having adjusted the HVAC mode.', format: 'uuid', type: 'string', }, hvac_mode: { description: 'HVAC mode that you want to simulate.', enum: ['cool'], type: 'string', }, }, required: ['hvac_mode', 'device_id'], type: 'object', }, { properties: { device_id: { description: 'ID of the thermostat device for which you want to simulate having adjusted the HVAC mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: 'Heating [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to simulate. You must set `heating_set_point_celsius` or `heating_set_point_fahrenheit`.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Heating [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to simulate. You must set `heating_set_point_fahrenheit` or `heating_set_point_celsius`.', format: 'float', type: 'number', }, hvac_mode: { description: 'HVAC mode that you want to simulate.', enum: ['heat'], type: 'string', }, }, required: ['hvac_mode', 'device_id'], type: 'object', }, { properties: { cooling_set_point_celsius: { description: 'Cooling [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to simulate. You must set `cooling_set_point_celsius` or `cooling_set_point_fahrenheit`.', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Cooling [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to simulate. You must set `cooling_set_point_fahrenheit` or `cooling_set_point_celsius`.', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want to simulate having adjusted the HVAC mode.', format: 'uuid', type: 'string', }, heating_set_point_celsius: { description: 'Heating [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °C that you want to simulate. You must set `heating_set_point_celsius` or `heating_set_point_fahrenheit`.', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Heating [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points) in °F that you want to simulate. You must set `heating_set_point_fahrenheit` or `heating_set_point_celsius`.', format: 'float', type: 'number', }, hvac_mode: { description: 'HVAC mode that you want to simulate.', enum: ['heat_cool'], type: 'string', }, }, required: ['hvac_mode', 'device_id'], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/thermostats/simulate/hvac_mode_adjusted', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'simulate'], 'x-fern-sdk-method-name': 'hvac_mode_adjusted', 'x-response-key': null, 'x-title': 'HVAC Mode Adjusted', }, }, '/thermostats/simulate/temperature_reached': { post: { description: 'Simulates a [thermostat](https://www.seam.co/docs/capability-guides/thermostats) reaching a specified temperature. Only applicable for [sandbox devices](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your Thermostat App with Simulate Endpoints](https://www.seam.co/docs/capability-guides/thermostats/testing-your-thermostat-app-with-simulate-endpoints).', operationId: 'thermostatsSimulateTemperatureReachedPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device that you want to simulate reaching a specified temperature.', format: 'uuid', type: 'string', }, temperature_celsius: { description: 'Temperature in °C that you want simulate the thermostat reaching. You must set `temperature_celsius` or `temperature_fahrenheit`.', format: 'float', type: 'number', }, temperature_fahrenheit: { description: 'Temperature in °F that you want simulate the thermostat reaching. You must set `temperature_fahrenheit` or `temperature_celsius`.', format: 'float', type: 'number', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/thermostats/simulate/temperature_reached', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats', 'simulate'], 'x-fern-sdk-method-name': 'temperature_reached', 'x-response-key': null, 'x-title': 'Temperature Reached', }, }, '/thermostats/update_climate_preset': { patch: { description: 'Updates a specified [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats).', operationId: 'thermostatsUpdateClimatePresetPatch', requestBody: { content: { 'application/json': { schema: { properties: { climate_preset_key: { description: 'Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', type: 'string', }, climate_preset_mode: { description: '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ', enum: [ 'home', 'away', 'wake', 'sleep', 'occupied', 'unoccupied', ], type: 'string', }, cooling_set_point_celsius: { description: 'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, cooling_set_point_fahrenheit: { description: 'Temperature to which the thermostat should cool (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, device_id: { description: 'ID of the thermostat device for which you want to update a climate preset.', format: 'uuid', type: 'string', }, ecobee_metadata: { description: '\n Metadata specific to the Ecobee climate, if applicable.\n ', properties: { climate_ref: { description: 'Reference to the Ecobee climate, if applicable.', type: 'string', }, is_optimized: { description: 'Indicates if the climate preset is optimized by Ecobee.', type: 'boolean', }, owner: { description: 'Indicates whether the climate preset is owned by the user or the system.', enum: ['user', 'system'], type: 'string', }, }, type: 'object', }, fan_mode_setting: { description: 'Desired [fan mode setting](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.', enum: ['auto', 'on', 'circulate'], type: 'string', }, heating_set_point_celsius: { description: 'Temperature to which the thermostat should heat (in °C). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, heating_set_point_fahrenheit: { description: 'Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points).', format: 'float', type: 'number', }, hvac_mode_setting: { description: 'Desired [HVAC mode](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.', enum: ['off', 'heat', 'cool', 'heat_cool', 'eco'], type: 'string', }, manual_override_allowed: { deprecated: true, description: "Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).", type: 'boolean', 'x-deprecated': "Use 'thermostat_schedule.is_override_allowed'", 'x-end-of-life': '2026-11-09', }, name: { default: null, description: 'User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets).', nullable: true, type: 'string', }, }, required: ['device_id', 'climate_preset_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { client_session: [] }, ], summary: '/thermostats/update_climate_preset', tags: ['/thermostats'], 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'update_climate_preset', 'x-response-key': null, 'x-title': 'Update a Climate Preset', }, }, '/thermostats/update_weekly_program': { post: { description: 'Updates the thermostat weekly program for a thermostat device. To configure a weekly program, specify the ID of the daily program that you want to use for each day of the week. When you update a weekly program, the set of programs that you specify overwrites any previous weekly program for the thermostat.', operationId: 'thermostatsUpdateWeeklyProgramPost', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the thermostat device for which you want to update the weekly program.', format: 'uuid', type: 'string', }, friday_program_id: { description: 'ID of the thermostat daily program to run on Fridays.', format: 'uuid', nullable: true, type: 'string', }, monday_program_id: { description: 'ID of the thermostat daily program to run on Mondays.', format: 'uuid', nullable: true, type: 'string', }, saturday_program_id: { description: 'ID of the thermostat daily program to run on Saturdays.', format: 'uuid', nullable: true, type: 'string', }, sunday_program_id: { description: 'ID of the thermostat daily program to run on Sundays.', format: 'uuid', nullable: true, type: 'string', }, thursday_program_id: { description: 'ID of the thermostat daily program to run on Thursdays.', format: 'uuid', nullable: true, type: 'string', }, tuesday_program_id: { description: 'ID of the thermostat daily program to run on Tuesdays.', format: 'uuid', nullable: true, type: 'string', }, wednesday_program_id: { description: 'ID of the thermostat daily program to run on Wednesdays.', format: 'uuid', nullable: true, type: 'string', }, }, required: ['device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/thermostats/update_weekly_program', tags: ['/thermostats'], 'x-action-attempt-type': 'PUSH_THERMOSTAT_PROGRAMS', 'x-fern-sdk-group-name': ['thermostats'], 'x-fern-sdk-method-name': 'update_weekly_program', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Update the Thermostat Weekly Program', }, }, '/unstable_partner/building_blocks/connect_accounts': { post: { description: 'Creates a new building block magic link to connect accounts.', operationId: 'unstablePartnerBuildingBlocksConnectAccountsPost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'Customer key for which you want to connect accounts.', minLength: 1, type: 'string', }, }, required: ['customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/unstable_partner/building_blocks/connect_accounts', tags: [], 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'], 'x-fern-sdk-method-name': 'connect_accounts', 'x-fern-sdk-return-value': 'magic_link', 'x-response-key': 'magic_link', 'x-title': 'Generate a Connect Accounts Building Block Magic Link', 'x-undocumented': 'Experimental partner building blocks.', }, }, '/unstable_partner/building_blocks/generate_magic_link': { post: { description: 'Creates a new building block magic link.', operationId: 'unstablePartnerBuildingBlocksGenerateMagicLinkPost', requestBody: { content: { 'application/json': { schema: { properties: { building_block_type: { description: 'Type of building block for which you want to create a magic link.', enum: [ 'connect_accounts', 'organize_spaces', 'console', 'manage_devices', ], type: 'string', }, customer_key: { description: 'Customer key for which you want to create a new building block magic link.', minLength: 1, type: 'string', }, spaces: { description: 'Optional list of spaces that you want to include in the new building block magic link.', items: { properties: { customer_data: { description: 'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, duration_minutes: { description: 'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, geolocation: { description: 'Geographic coordinates (latitude and longitude) of the space.', properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, space_key: { description: 'Your unique identifier for the space.', minLength: 1, type: 'string', }, }, required: ['name', 'space_key'], type: 'object', }, type: 'array', }, }, required: ['building_block_type', 'customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/unstable_partner/building_blocks/generate_magic_link', tags: [], 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'], 'x-fern-sdk-method-name': 'generate_magic_link', 'x-fern-sdk-return-value': 'magic_link', 'x-response-key': 'magic_link', 'x-title': 'Generate a Building Block Magic Link', 'x-undocumented': 'Experimental partner building blocks.', }, }, '/unstable_partner/building_blocks/manage_devices': { post: { description: 'Creates a new building block magic link to manage devices.', operationId: 'unstablePartnerBuildingBlocksManageDevicesPost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'Customer key for which you want to manage devices.', minLength: 1, type: 'string', }, }, required: ['customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/unstable_partner/building_blocks/manage_devices', tags: [], 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'], 'x-fern-sdk-method-name': 'manage_devices', 'x-fern-sdk-return-value': 'magic_link', 'x-response-key': 'magic_link', 'x-title': 'Generate a Manage Devices Building Block Magic Link', 'x-undocumented': 'Experimental partner building blocks.', }, }, '/unstable_partner/building_blocks/organize_spaces': { post: { description: 'Creates a new building block magic link to organize spaces.', operationId: 'unstablePartnerBuildingBlocksOrganizeSpacesPost', requestBody: { content: { 'application/json': { schema: { properties: { customer_key: { description: 'Customer key for which you want to organize spaces.', minLength: 1, type: 'string', }, spaces: { description: 'Optional list of spaces that you want to include in the new building block magic link.', items: { properties: { customer_data: { description: 'Reservation/stay-related defaults for the space (time zone, default check-in/out times, address).', properties: { address: { description: 'Postal address for the space.', nullable: true, type: 'string', }, default_checkin_time: { description: 'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, default_checkout_time: { description: 'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.', nullable: true, pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$', type: 'string', }, time_zone: { description: 'IANA time zone for the space, e.g. America/Los_Angeles.', nullable: true, type: 'string', }, }, type: 'object', }, duration_minutes: { description: 'Default duration of this space in minutes, when the space represents a fixed-length bookable slot (e.g. an appointment type). Used to interpret reservations booked against this space.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, geolocation: { description: 'Geographic coordinates (latitude and longitude) of the space.', properties: { latitude: { description: 'Latitude of the space, in decimal degrees.', format: 'float', type: 'number', }, longitude: { description: 'Longitude of the space, in decimal degrees.', format: 'float', type: 'number', }, }, required: ['latitude', 'longitude'], type: 'object', }, name: { description: 'Your display name for this location resource.', type: 'string', }, parent_site_key: { description: 'Your unique identifier for the site.', minLength: 1, type: 'string', }, space_key: { description: 'Your unique identifier for the space.', minLength: 1, type: 'string', }, }, required: ['name', 'space_key'], type: 'object', }, type: 'array', }, }, required: ['customer_key'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { magic_link: { $ref: '#/components/schemas/magic_link' }, ok: { type: 'boolean' }, }, required: ['magic_link', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/unstable_partner/building_blocks/organize_spaces', tags: [], 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'], 'x-fern-sdk-method-name': 'organize_spaces', 'x-fern-sdk-return-value': 'magic_link', 'x-response-key': 'magic_link', 'x-title': 'Generate an Organize Spaces Building Block Magic Link', 'x-undocumented': 'Experimental partner building blocks.', }, }, '/user_identities/add_acs_user': { put: { description: "Adds a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) to a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).\n\nYou must specify either `user_identity_id` or `user_identity_key` to identify the user identity.\n\nIf `user_identity_key` is provided, but the user identity doesn't exist, a new user identity will be created automatically using information from the ACS user.", operationId: 'userIdentitiesAddAcsUserPut', requestBody: { content: { 'application/json': { schema: { properties: { acs_user_id: { description: 'ID of the access system user that you want to add to the user identity.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity to which you want to add an access system user.', format: 'uuid', type: 'string', }, user_identity_key: { description: 'Key of the user identity to which you want to add an access system user.', minLength: 1, type: 'string', }, }, required: ['acs_user_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/add_acs_user', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'add_acs_user', 'x-response-key': null, 'x-title': 'Add an ACS User to a User Identity', }, }, '/user_identities/create': { post: { description: 'Creates a new [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { acs_system_ids: { description: "List of access system IDs to associate with the new user identity through access system users. If there's no user with the same email address or phone number in the specified access systems, a new access system user is created. If there is an existing user with the same email or phone number in the specified access systems, the user is linked to the user identity.", items: { format: 'uuid', type: 'string' }, type: 'array', }, customer_key: { description: "Customer key of the customer that owns the new user identity. Set it when the user identity will be used in access grants created through that customer's client session or Customer Portal.", minLength: 1, type: 'string', }, email_address: { description: 'Unique email address for the new user identity.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the user associated with the new user identity.', minLength: 1, nullable: true, type: 'string', }, phone_number: { description: 'Unique phone number for the new user identity in E.164 format (for example, +15555550100).', nullable: true, type: 'string', }, user_identity_key: { description: 'Unique key for the new user identity.', minLength: 1, nullable: true, type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, user_identity: { $ref: '#/components/schemas/user_identity', }, }, required: ['user_identity', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/create', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'user_identity', 'x-response-key': 'user_identity', 'x-title': 'Create a User Identity', }, }, '/user_identities/delete': { delete: { description: 'Deletes a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This deletes the user identity and all associated resources, including any [credentials](https://www.seam.co/docs/api/acs/credentials/object), [acs users](https://www.seam.co/docs/api/acs/users/object) and [client sessions](https://www.seam.co/docs/api/client_sessions/object).', operationId: 'userIdentitiesDeleteDelete', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/delete', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a User Identity', }, }, '/user_identities/enrollment_automations/delete': { delete: { description: 'Deletes a specified [enrollment automation](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system). You must delete all enrollment automations associated with a [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) before [deleting the user identity](https://www.seam.co/docs/api/user_identities/delete).', operationId: 'userIdentitiesEnrollmentAutomationsDeleteDelete', parameters: [ { in: 'query', name: 'enrollment_automation_id', required: true, schema: { description: 'ID of the enrollment automation that you want to delete.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/user_identities/enrollment_automations/delete', tags: ['/user_identities'], 'x-end-of-life': '2026-11-24', 'x-fern-sdk-group-name': ['user_identities', 'enrollment_automations'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete an Enrollment Automation', 'x-undocumented': 'Will be removed.', }, }, '/user_identities/enrollment_automations/get': { get: { description: 'Returns a specified [enrollment automation](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system).', operationId: 'userIdentitiesEnrollmentAutomationsGetGet', parameters: [ { in: 'query', name: 'enrollment_automation_id', required: true, schema: { description: 'ID of the enrollment automation that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { enrollment_automation: { $ref: '#/components/schemas/enrollment_automation', }, ok: { type: 'boolean' }, }, required: ['enrollment_automation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/user_identities/enrollment_automations/get', tags: ['/user_identities'], 'x-end-of-life': '2026-11-24', 'x-fern-sdk-group-name': ['user_identities', 'enrollment_automations'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'enrollment_automation', 'x-response-key': 'enrollment_automation', 'x-title': 'Get an Enrollment Automation', 'x-undocumented': 'Will be removed.', }, }, '/user_identities/enrollment_automations/launch': { post: { description: 'Sets up a new [enrollment automation](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system) for a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) with a specified [credential manager](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system).', operationId: 'userIdentitiesEnrollmentAutomationsLaunchPost', requestBody: { content: { 'application/json': { schema: { properties: { acs_credential_pool_id: { description: 'ID of the credential pool from which to obtain credentials for the user identity.', format: 'uuid', type: 'string', }, create_credential_manager_user: { description: 'Indicates whether to create an associated credential manager user. If you set `create_credential_manager_user` to `true`, you cannot specify a `credential_manager_acs_user_id`.', type: 'boolean', }, credential_manager_acs_system_id: { description: 'ID of the desired access system that serves as the credential manager for the enrollment automation.', format: 'uuid', type: 'string', }, credential_manager_acs_user_id: { description: 'ID of the associated access system user within the credential manager. If you specify a `credential_manager_acs_user_id`, you cannot set `create_credential_manager_user` to `true`.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity for which you want to launch an enrollment automation.', format: 'uuid', type: 'string', }, }, required: [ 'user_identity_id', 'credential_manager_acs_system_id', ], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { enrollment_automation: { $ref: '#/components/schemas/enrollment_automation', }, ok: { type: 'boolean' }, }, required: ['enrollment_automation', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/user_identities/enrollment_automations/launch', tags: ['/user_identities'], 'x-end-of-life': '2026-11-24', 'x-fern-sdk-group-name': ['user_identities', 'enrollment_automations'], 'x-fern-sdk-method-name': 'launch', 'x-fern-sdk-return-value': 'enrollment_automation', 'x-response-key': 'enrollment_automation', 'x-title': 'Launch an Enrollment Automation', 'x-undocumented': 'Will be removed.', }, }, '/user_identities/enrollment_automations/list': { get: { description: 'Returns a list of all [enrollment automations](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system) for a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesEnrollmentAutomationsListGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity for which you want to retrieve enrollment automations.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { enrollment_automations: { items: { $ref: '#/components/schemas/enrollment_automation', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['enrollment_automations', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/user_identities/enrollment_automations/list', tags: ['/user_identities'], 'x-end-of-life': '2026-11-24', 'x-fern-sdk-group-name': ['user_identities', 'enrollment_automations'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'enrollment_automations', 'x-response-key': 'enrollment_automations', 'x-title': 'List Enrollment Automations', 'x-undocumented': 'Will be removed.', }, }, '/user_identities/generate_instant_key': { post: { description: 'Generates a new [instant key](https://www.seam.co/docs/use-cases/granting-access/using-instant-keys) for a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesGenerateInstantKeyPost', requestBody: { content: { 'application/json': { schema: { properties: { customization_profile_id: { format: 'uuid', type: 'string' }, max_use_count: { default: 1, description: 'Maximum number of times the instant key can be used. Default: 1.', format: 'float', type: 'number', }, user_identity_id: { description: 'ID of the user identity for which you want to generate an instant key.', format: 'uuid', type: 'string', }, }, required: ['user_identity_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { instant_key: { $ref: '#/components/schemas/instant_key' }, ok: { type: 'boolean' }, }, required: ['instant_key', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/generate_instant_key', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'generate_instant_key', 'x-fern-sdk-return-value': 'instant_key', 'x-response-key': 'instant_key', 'x-title': 'Generate an Instant Key', }, }, '/user_identities/get': { get: { description: 'Returns a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesGetGet', parameters: [ { in: 'query', name: 'user_identity_id', schema: { description: 'ID of the user identity that you want to get.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'user_identity_key', schema: { minLength: 1, type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, user_identity: { $ref: '#/components/schemas/user_identity', }, }, required: ['user_identity', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/get', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'user_identity', 'x-has-required-parameters': true, 'x-response-key': 'user_identity', 'x-title': 'Get a User Identity', }, }, '/user_identities/grant_access_to_device': { put: { description: 'Grants a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) access to a specified [device](https://www.seam.co/docs/core-concepts/devices).', operationId: 'userIdentitiesGrantAccessToDevicePut', requestBody: { content: { 'application/json': { schema: { properties: { device_id: { description: 'ID of the managed device to which you want to grant access to the user identity.', format: 'uuid', type: 'string', }, user_identity_id: { description: 'ID of the user identity that you want to grant access to a device.', format: 'uuid', type: 'string', }, }, required: ['user_identity_id', 'device_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/grant_access_to_device', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'grant_access_to_device', 'x-response-key': null, 'x-title': 'Grant a User Identity Access to a Device', }, }, '/user_identities/list': { get: { description: 'Returns a list of all [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Customer key for which you want to list user identities.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'user_identity_ids', schema: { description: 'Array of user identity IDs by which to filter the list of user identities.', items: { format: 'uuid', type: 'string' }, type: 'array', }, }, { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address` or `user_identity_id`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'credential_manager_acs_system_id', schema: { description: '`acs_system_id` of the credential manager by which you want to filter the list of user identities.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned user identities. Returns user identities created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, user_identities: { items: { $ref: '#/components/schemas/user_identity' }, type: 'array', }, }, required: ['user_identities', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/list', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'user_identities', 'x-response-key': 'user_identities', 'x-title': 'List User Identities', }, }, '/user_identities/list_accessible_devices': { get: { description: 'Returns a list of all [devices](https://www.seam.co/docs/core-concepts/devices) associated with a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes devices derived from the access grants assigned to the user identity and devices directly linked to the user identity.', operationId: 'userIdentitiesListAccessibleDevicesGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity for which you want to retrieve all accessible devices.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { accessible_devices: { deprecated: true, items: { $ref: '#/components/schemas/device' }, type: 'array', 'x-deprecated': 'Use devices.', 'x-end-of-life': '2026-11-09', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['devices', 'accessible_devices', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/list_accessible_devices', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'list_accessible_devices', 'x-fern-sdk-return-value': 'devices', 'x-response-key': 'devices', 'x-title': 'List Accessible Devices for a User Identity', }, }, '/user_identities/list_accessible_entrances': { get: { description: 'Returns a list of all [ACS entrances](https://www.seam.co/docs/api/acs/entrances/object) accessible to a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes entrances derived from the access grants assigned to the user identity and entrances accessible through ACS users linked to the user identity.', operationId: 'userIdentitiesListAccessibleEntrancesGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity for which you want to retrieve all accessible entrances.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_entrances', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/list_accessible_entrances', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'list_accessible_entrances', 'x-fern-sdk-return-value': 'acs_entrances', 'x-response-key': 'acs_entrances', 'x-title': 'List Accessible Entrances for a User Identity', }, }, '/user_identities/list_acs_systems': { get: { description: 'Returns a list of all [access systems](https://www.seam.co/docs/low-level-apis/access-systems) associated with a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesListAcsSystemsGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity for which you want to retrieve all access systems.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_systems', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/list_acs_systems', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'list_acs_systems', 'x-fern-sdk-return-value': 'acs_systems', 'x-response-key': 'acs_systems', 'x-title': 'List ACS Systems Associated with a User Identity', }, }, '/user_identities/list_acs_users': { get: { description: 'Returns a list of all [access system users](https://www.seam.co/docs/low-level-apis/access-systems/user-management) assigned to a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesListAcsUsersGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity for which you want to retrieve all access system users.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { acs_users: { items: { $ref: '#/components/schemas/acs_user' }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['acs_users', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/list_acs_users', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'list_acs_users', 'x-fern-sdk-return-value': 'acs_users', 'x-response-key': 'acs_users', 'x-title': 'List ACS Users Associated with a User Identity', }, }, '/user_identities/merge': { post: { description: 'Merges one or more [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) into a primary user identity, for when the same person ended up with more than one user identity.\n\nThe primary user identity takes on any email address or phone number it was missing from the user identities merged into it, and the merged user identities are then deleted. Their IDs and keys keep working: looking one up returns the primary user identity, and they are listed on it as `merged_user_identity_ids` and `merged_user_identity_keys`.\n\nAccess grants, access system users, client sessions and other resources belonging to the merged user identities are moved to the primary user identity.\n\nIdentify the user identities either by ID or by key, but not both in the same request. Repeating a merge that has already been applied makes no further changes.', operationId: 'userIdentitiesMergePost', requestBody: { content: { 'application/json': { schema: { oneOf: [ { properties: { merged_user_identity_ids: { description: 'IDs of the user identities to merge into the primary user identity. These user identities are deleted.', items: { format: 'uuid', type: 'string' }, maxItems: 20, minItems: 1, type: 'array', }, user_identity_id: { description: 'ID of the primary user identity to keep.', format: 'uuid', type: 'string', }, }, required: ['user_identity_id', 'merged_user_identity_ids'], type: 'object', }, { properties: { merged_user_identity_keys: { description: 'Keys of the user identities to merge into the primary user identity. These user identities are deleted.', items: { minLength: 1, type: 'string' }, maxItems: 20, minItems: 1, type: 'array', }, user_identity_key: { description: 'Key of the primary user identity to keep.', minLength: 1, type: 'string', }, }, required: [ 'user_identity_key', 'merged_user_identity_keys', ], type: 'object', }, ], }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/merge', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'merge', 'x-response-key': null, 'x-title': 'Merge User Identities', }, }, '/user_identities/remove_acs_user': { delete: { description: 'Removes a specified [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) from a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesRemoveAcsUserDelete', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity from which you want to remove an access system user.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'acs_user_id', required: true, schema: { description: 'ID of the access system user that you want to remove from the user identity..', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/remove_acs_user', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'remove_acs_user', 'x-response-key': null, 'x-title': 'Remove an ACS User from a User Identity', }, }, '/user_identities/revoke_access_to_device': { delete: { description: 'Revokes access to a specified [device](https://www.seam.co/docs/core-concepts/devices) from a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesRevokeAccessToDeviceDelete', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the user identity from which you want to revoke access to a device.', format: 'uuid', type: 'string', }, }, { in: 'query', name: 'device_id', required: true, schema: { description: 'ID of the managed device to which you want to revoke access from the user identity.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/revoke_access_to_device', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'revoke_access_to_device', 'x-response-key': null, 'x-title': 'Revoke Access to a Device from a User Identity', }, }, '/user_identities/unmanaged/get': { get: { description: 'Returns a specified unmanaged [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) (where is_managed = false).', operationId: 'userIdentitiesUnmanagedGetGet', parameters: [ { in: 'query', name: 'user_identity_id', required: true, schema: { description: 'ID of the unmanaged user identity that you want to get.', format: 'uuid', type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, user_identity: { $ref: '#/components/schemas/unmanaged_user_identity', }, }, required: ['user_identity', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/unmanaged/get', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities', 'unmanaged'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'user_identity', 'x-response-key': 'user_identity', 'x-title': 'Get an Unmanaged User Identity', }, }, '/user_identities/unmanaged/list': { get: { description: 'Returns a list of all unmanaged [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) (where is_managed = false).', operationId: 'userIdentitiesUnmanagedListGet', parameters: [ { in: 'query', name: 'search', schema: { description: 'String for which to search. Filters returned unmanaged user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `user_identity_id` or `acs_system_id`.', minLength: 1, type: 'string', }, }, { in: 'query', name: 'limit', schema: { default: 500, description: 'Maximum number of records to return per page.', exclusiveMinimum: true, minimum: 0, type: 'integer', }, }, { in: 'query', name: 'created_before', schema: { description: 'Timestamp by which to limit returned unmanaged user identities. Returns user identities created before this timestamp.', format: 'date-time', type: 'string', }, }, { in: 'query', name: 'page_cursor', schema: { description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.", nullable: true, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, pagination: { $ref: '#/components/schemas/pagination' }, user_identities: { items: { $ref: '#/components/schemas/unmanaged_user_identity', }, type: 'array', }, }, required: ['user_identities', 'pagination', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/user_identities/unmanaged/list', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities', 'unmanaged'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'user_identities', 'x-response-key': 'user_identities', 'x-title': 'List Unmanaged User Identities', }, }, '/user_identities/unmanaged/update': { patch: { description: 'Updates an unmanaged [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.\n\nThis endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.', operationId: 'userIdentitiesUnmanagedUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { is_managed: { description: 'Must be set to true to convert the unmanaged user identity to managed.', enum: [true], type: 'boolean', }, user_identity_id: { description: 'ID of the unmanaged user identity that you want to update.', format: 'uuid', type: 'string', }, user_identity_key: { description: 'Unique key for the user identity. If not provided, the existing key will be preserved.', minLength: 1, type: 'string', }, }, required: ['user_identity_id', 'is_managed'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { client_session: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/user_identities/unmanaged/update', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities', 'unmanaged'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update an Unmanaged User Identity', }, }, '/user_identities/update': { patch: { description: 'Updates a specified [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).', operationId: 'userIdentitiesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { email_address: { description: 'Unique email address for the user identity.', format: 'email', nullable: true, type: 'string', }, full_name: { description: 'Full name of the user associated with the user identity.', minLength: 1, nullable: true, type: 'string', }, phone_number: { description: 'Unique phone number for the user identity.', nullable: true, type: 'string', }, user_identity_id: { description: 'ID of the user identity that you want to update.', format: 'uuid', type: 'string', }, user_identity_key: { description: 'Unique key for the user identity.', minLength: 1, nullable: true, type: 'string', }, }, required: ['user_identity_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/user_identities/update', tags: ['/user_identities'], 'x-fern-sdk-group-name': ['user_identities'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a User Identity', }, }, '/webhooks/create': { post: { description: 'Creates a new [webhook](https://www.seam.co/docs/developer-tools/webhooks).', operationId: 'webhooksCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { event_types: { default: ['*'], description: 'Types of events that you want the new webhook to receive.', items: { type: 'string' }, type: 'array', }, url: { description: 'URL for the new webhook.', format: 'uri', type: 'string', }, }, required: ['url'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, webhook: { $ref: '#/components/schemas/webhook' }, }, required: ['webhook', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/webhooks/create', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['webhooks'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'webhook', 'x-response-key': 'webhook', 'x-title': 'Create a Webhook', }, }, '/webhooks/delete': { delete: { description: 'Deletes a specified [webhook](https://www.seam.co/docs/developer-tools/webhooks).', operationId: 'webhooksDeleteDelete', parameters: [ { in: 'query', name: 'webhook_id', required: true, schema: { description: 'ID of the webhook that you want to delete.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/webhooks/delete', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['webhooks'], 'x-fern-sdk-method-name': 'delete', 'x-response-key': null, 'x-title': 'Delete a Webhook', }, }, '/webhooks/get': { get: { description: 'Gets a specified [webhook](https://www.seam.co/docs/developer-tools/webhooks).', operationId: 'webhooksGetGet', parameters: [ { in: 'query', name: 'webhook_id', required: true, schema: { description: 'ID of the webhook that you want to get.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, webhook: { $ref: '#/components/schemas/webhook' }, }, required: ['webhook', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/webhooks/get', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['webhooks'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'webhook', 'x-response-key': 'webhook', 'x-title': 'Get a Webhook', }, }, '/webhooks/list': { get: { description: 'Returns a list of all [webhooks](https://www.seam.co/docs/developer-tools/webhooks).', operationId: 'webhooksListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, webhooks: { items: { $ref: '#/components/schemas/webhook' }, type: 'array', }, }, required: ['webhooks', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/webhooks/list', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['webhooks'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'webhooks', 'x-response-key': 'webhooks', 'x-title': 'List Webhooks', }, }, '/webhooks/update': { put: { description: 'Updates a specified [webhook](https://www.seam.co/docs/developer-tools/webhooks).', operationId: 'webhooksUpdatePut', requestBody: { content: { 'application/json': { schema: { properties: { event_types: { description: 'Types of events that you want the webhook to receive.', items: { type: 'string' }, type: 'array', }, webhook_id: { description: 'ID of the webhook that you want to update.', type: 'string', }, }, required: ['webhook_id', 'event_types'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/webhooks/update', tags: ['/webhooks'], 'x-fern-sdk-group-name': ['webhooks'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Webhook', }, }, '/workspaces/create': { post: { description: 'Creates a new [workspace](https://www.seam.co/docs/core-concepts/workspaces).', operationId: 'workspacesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { company_name: { deprecated: true, description: 'Company name for the new workspace.', type: 'string', 'x-deprecated': 'Use `connect_partner_name` instead.', 'x-end-of-life': '2026-11-09', }, connect_partner_name: { description: 'Connect partner name for the new workspace.', nullable: true, type: 'string', }, connect_webview_customization: { description: '[Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) customizations for the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', properties: { logo_shape: { description: 'Logo shape for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { description: 'Primary button color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, primary_button_text_color: { description: 'Primary button text color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, success_message: { description: 'Success message for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, }, type: 'object', }, is_sandbox: { default: false, description: 'Indicates whether the new workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces).', type: 'boolean', }, name: { description: 'Name of the new workspace.', type: 'string', }, organization_id: { description: 'ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it.', format: 'uuid', type: 'string', }, webview_logo_shape: { deprecated: true, enum: ['circle', 'square'], type: 'string', 'x-deprecated': 'Use `connect_webview_customization.webview_logo_shape` instead.', 'x-end-of-life': '2026-11-09', }, webview_primary_button_color: { deprecated: true, type: 'string', 'x-deprecated': 'Use `connect_webview_customization.webview_primary_button_color` instead.', 'x-end-of-life': '2026-11-09', }, webview_primary_button_text_color: { deprecated: true, type: 'string', 'x-deprecated': 'Use `connect_webview_customization.webview_primary_button_text_color` instead.', 'x-end-of-life': '2026-11-09', }, webview_success_message: { deprecated: true, type: 'string', 'x-deprecated': 'Use `connect_webview_customization.webview_success_message` instead.', 'x-end-of-life': '2026-11-09', }, }, required: ['name'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspace: { $ref: '#/components/schemas/workspace' }, }, required: ['workspace', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_without_workspace: [] }, { console_session_with_workspace: [] }, { console_session_without_workspace: [] }, ], summary: '/workspaces/create', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'workspace', 'x-response-key': 'workspace', 'x-title': 'Create a Workspace', }, }, '/workspaces/customization_profiles/create': { post: { description: "Creates a customization profile. With `base_customization_profile_id`, the new profile starts as a copy of that profile and the other fields replace its values.\n\nFrom a customer client session, the profile is owned by that customer, and it becomes the customer's `customization_profile_id` when the customer has none yet or when it's a copy of the customer's current profile. That's how a customer customizes the workspace-level profile it uses without changing it for other customers.\n\nA workspace's first workspace-level profile becomes its default (`is_workspace_default`).", operationId: 'workspacesCustomizationProfilesCreatePost', requestBody: { content: { 'application/json': { schema: { properties: { base_customization_profile_id: { format: 'uuid', type: 'string', }, customer_portal_features: { description: 'Features for customer portals that use this profile. Settings passed when creating a portal take precedence.', properties: { configure: { description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, customer_portal_theme: { properties: { font_family: { type: 'string' }, mono_font_family: { type: 'string' }, primary_color: { type: 'string' }, primary_foreground_color: { type: 'string' }, secondary_color: { type: 'string' }, secondary_foreground_color: { type: 'string' }, }, type: 'object', }, instant_key_theme: { properties: { dark: { additionalProperties: false, description: 'Dark-mode colors, in the same form as `light`. When omitted, dark mode uses the Seam default with your `primary`, `primary_foreground`, and `ring` colors.', properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, font_family: { description: 'Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace.', maxLength: 200, type: 'string', }, key_card_texture: { description: 'Whether the key card shows its default texture over the key card gradient, or the gradient alone.', enum: ['default', 'none'], type: 'string', }, light: { additionalProperties: false, description: "Light-mode colors, named after shadcn/ui's CSS variables in snake_case. Values are CSS colors in hex, `oklch()`, `rgb()`, or `hsl()` form. Colors you omit use the Seam default.", properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, radius: { description: 'Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`.', pattern: '^(?:\\d+\\.?\\d*|\\.\\d+)(?:rem|px)?$', type: 'string', }, }, type: 'object', }, message_overrides: { additionalProperties: { additionalProperties: { type: 'string' }, type: 'object', }, type: 'object', }, name: { default: null, nullable: true, type: 'string' }, primary_color: { type: 'string' }, secondary_color: { type: 'string' }, }, type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { customization_profile: { $ref: '#/components/schemas/customization_profile', }, ok: { type: 'boolean' }, }, required: ['customization_profile', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/customization_profiles/create', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces', 'customization_profiles'], 'x-fern-sdk-method-name': 'create', 'x-fern-sdk-return-value': 'customization_profile', 'x-response-key': 'customization_profile', 'x-title': 'Create Customization Profile', 'x-undocumented': 'Unreleased.', }, }, '/workspaces/customization_profiles/get': { get: { description: 'Retrieves the customization profile for the workspace.', operationId: 'workspacesCustomizationProfilesGetGet', parameters: [ { in: 'query', name: 'customization_profile_id', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customization_profile: { $ref: '#/components/schemas/customization_profile', }, ok: { type: 'boolean' }, }, required: ['customization_profile', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/customization_profiles/get', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces', 'customization_profiles'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'customization_profile', 'x-response-key': 'customization_profile', 'x-title': 'Get Customization Profile', 'x-undocumented': 'Unreleased.', }, }, '/workspaces/customization_profiles/list': { get: { description: 'Returns the customization profiles in the workspace. With `customer_key`, or from a customer client session, returns only the profiles that customer owns. A customer can own a profile without using it: the profile applied to the customer is `customization_profile_id` on `/seam/customer/v1/customers/get`.', operationId: 'workspacesCustomizationProfilesListGet', parameters: [ { in: 'query', name: 'customer_key', schema: { description: 'Key of the customer whose owned customization profiles you want to list. This filters by owner, not by the profile the customer uses.', minLength: 1, type: 'string', }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { customization_profiles: { items: { $ref: '#/components/schemas/customization_profile', }, type: 'array', }, ok: { type: 'boolean' }, }, required: ['customization_profiles', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/customization_profiles/list', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces', 'customization_profiles'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'customization_profiles', 'x-response-key': 'customization_profiles', 'x-title': 'List Customization Profiles', 'x-undocumented': 'Unreleased.', }, }, '/workspaces/customization_profiles/update': { patch: { description: "Updates the customization profile for the workspace.\n\n`is_workspace_default: true` makes a workspace-level profile the workspace's default, replacing the previous one: access grants and Instant Keys created without a customization profile use it. `false` removes it, so they use the Seam default again. A customer client session can't change the default.", operationId: 'workspacesCustomizationProfilesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { customer_portal_features: { description: "Features for customer portals that use this profile. Replaces the profile's current features; pass `null` to remove them. Portals pick up the change the next time they load.", nullable: true, properties: { configure: { description: 'Configuration for the configure feature.', properties: { allow_access_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the access automation rules for their properties.', type: 'boolean', }, allow_bridge_replacement: { default: false, description: 'Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected.', type: 'boolean', }, allow_climate_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the climate automation rules for their properties.', type: 'boolean', }, allow_instant_key_customization: { default: false, description: 'Indicates whether the customer can customize the Instant Key profile for their properties.', type: 'boolean', }, allow_notification_customization: { default: false, description: 'Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold.', type: 'boolean', }, allow_pool_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the pool heating automation rules for their properties.', type: 'boolean', }, allow_sensor_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sensor automation rules for their properties.', type: 'boolean', }, allow_sound_automation_rule_customization: { default: false, description: 'Indicates whether the customer can customize the sound automation rules for their properties.', type: 'boolean', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, connect: { description: 'Configuration for the connect accounts feature.', properties: { accepted_providers: { description: 'List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, excluded_providers: { description: 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, manage: { description: 'Configuration for the manage feature.', properties: { device_management_confirmation: { description: '\n Custom copy for the confirmation modal shown before unmanaged devices are added to a space and begin being managed (and billed). Only takes effect when the MANAGE_DEVICES_CONFIRMATION_MODAL feature flag is enabled for the workspace. Any omitted string falls back to a localized default.\n ', properties: { body: { description: 'Custom body text for the confirmation modal. May include the {count} token, which is replaced with the number of devices that will begin being managed.', type: 'string', }, cancel_button_label: { description: 'Custom label for the cancel button.', type: 'string', }, confirm_button_label: { description: 'Custom label for the confirm button.', type: 'string', }, title: { description: 'Custom title for the confirmation modal.', type: 'string', }, }, type: 'object', }, events: { description: 'Configuration for event type filtering in the manage feature.', properties: { allowed_events: { description: 'List of event types to show in the events filter. When set, only these event types will be available. Leave empty to show all events.', items: { type: 'string' }, type: 'array', }, default_events: { description: 'List of event types that are pre-selected in the events filter when the user first loads the events tab.', items: { type: 'string' }, type: 'array', }, }, type: 'object', }, exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, exclude_device_management: { default: false, description: 'Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed.', type: 'boolean', }, exclude_reservation_management: { default: false, description: 'Indicates whether the customer can manage reservations for their properties.', type: 'boolean', }, exclude_reservation_technical_details: { default: false, description: 'Indicates whether to exclude technical details from reservation views.', type: 'boolean', }, exclude_staff_management: { default: false, description: 'Indicates whether the customer can manage staff for their properties.', type: 'boolean', }, }, type: 'object', }, manage_devices: { deprecated: true, description: 'Configuration for the manage devices feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', 'x-deprecated': 'Use `manage` instead.', 'x-end-of-life': '2026-11-09', }, organize: { description: 'Configuration for the organize feature.', properties: { exclude: { default: false, description: 'Whether to exclude this feature from the portal.', type: 'boolean', }, }, type: 'object', }, }, type: 'object', }, customer_portal_theme: { nullable: true, properties: { font_family: { type: 'string' }, mono_font_family: { type: 'string' }, primary_color: { type: 'string' }, primary_foreground_color: { type: 'string' }, secondary_color: { type: 'string' }, secondary_foreground_color: { type: 'string' }, }, type: 'object', }, customization_profile_id: { format: 'uuid', type: 'string' }, instant_key_theme: { nullable: true, properties: { dark: { additionalProperties: false, description: 'Dark-mode colors, in the same form as `light`. When omitted, dark mode uses the Seam default with your `primary`, `primary_foreground`, and `ring` colors.', properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, font_family: { description: 'Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace.', maxLength: 200, type: 'string', }, key_card_texture: { description: 'Whether the key card shows its default texture over the key card gradient, or the gradient alone.', enum: ['default', 'none'], type: 'string', }, light: { additionalProperties: false, description: "Light-mode colors, named after shadcn/ui's CSS variables in snake_case. Values are CSS colors in hex, `oklch()`, `rgb()`, or `hsl()` form. Colors you omit use the Seam default.", properties: { accent: { description: 'Pressed and hovered backgrounds.', maxLength: 100, type: 'string', }, accent_foreground: { description: 'Text color on `accent`.', maxLength: 100, type: 'string', }, background: { description: 'App background.', maxLength: 100, type: 'string', }, border: { description: 'Borders and dividers.', maxLength: 100, type: 'string', }, card: { description: 'Card background.', maxLength: 100, type: 'string', }, card_foreground: { description: 'Text color on cards.', maxLength: 100, type: 'string', }, destructive: { description: 'Errors and destructive actions.', maxLength: 100, type: 'string', }, destructive_foreground: { description: 'Text color on `destructive`.', maxLength: 100, type: 'string', }, foreground: { description: 'Default text color.', maxLength: 100, type: 'string', }, input: { description: 'Input borders.', maxLength: 100, type: 'string', }, key_card: { description: 'Start of the key card gradient.', maxLength: 100, type: 'string', }, key_card_end: { description: 'End of the key card gradient.', maxLength: 100, type: 'string', }, key_card_foreground: { description: 'Text and logo color on the key card.', maxLength: 100, type: 'string', }, muted: { description: 'Subtle backgrounds, such as the unlock sheet header.', maxLength: 100, type: 'string', }, muted_foreground: { description: 'Secondary text.', maxLength: 100, type: 'string', }, popover: { description: 'Dialog and sheet background.', maxLength: 100, type: 'string', }, popover_foreground: { description: 'Text color on dialogs and sheets.', maxLength: 100, type: 'string', }, primary: { description: 'Primary buttons and highlights.', maxLength: 100, type: 'string', }, primary_foreground: { description: 'Text color on `primary`.', maxLength: 100, type: 'string', }, ring: { description: 'Focus rings.', maxLength: 100, type: 'string', }, secondary: { description: 'Secondary buttons.', maxLength: 100, type: 'string', }, secondary_foreground: { description: 'Text color on `secondary`.', maxLength: 100, type: 'string', }, success: { description: 'Successful unlocks.', maxLength: 100, type: 'string', }, success_foreground: { description: 'Text color on `success`.', maxLength: 100, type: 'string', }, unlock: { description: 'Start of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_end: { description: 'End of the unlock button gradient.', maxLength: 100, type: 'string', }, unlock_foreground: { description: 'Icon color on the unlock button.', maxLength: 100, type: 'string', }, }, type: 'object', }, radius: { description: 'Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`.', pattern: '^(?:\\d+\\.?\\d*|\\.\\d+)(?:rem|px)?$', type: 'string', }, }, type: 'object', }, is_workspace_default: { type: 'boolean' }, message_overrides: { additionalProperties: { additionalProperties: { type: 'string' }, type: 'object', }, nullable: true, type: 'object', }, name: { nullable: true, type: 'string' }, primary_color: { type: 'string' }, secondary_color: { type: 'string' }, }, required: ['customization_profile_id'], type: 'object', }, }, }, }, responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/customization_profiles/update', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces', 'customization_profiles'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update Customization Profile', 'x-undocumented': 'Unreleased.', }, }, '/workspaces/customization_profiles/upload_images': { post: { description: 'Uploads a logo for the customization profile.', operationId: 'workspacesCustomizationProfilesUploadImagesPost', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' } }, required: ['ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { client_session_with_customer: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/customization_profiles/upload_images', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces', 'customization_profiles'], 'x-fern-sdk-method-name': 'upload_images', 'x-response-key': null, 'x-title': 'Upload Customization Profile Logo', 'x-undocumented': 'Internal form-data endpoint for Console and Customer Portal.', }, }, '/workspaces/find_anything': { get: { description: 'Search for resources inside a workspace.', operationId: 'workspacesFindAnythingGet', parameters: [ { in: 'query', name: 'search', required: true, schema: { format: 'uuid', type: 'string' }, }, ], responses: { '200': { content: { 'application/json': { schema: { properties: { batch: { description: 'A batch of workspace resources.', properties: { access_codes: { items: { $ref: '#/components/schemas/access_code' }, type: 'array', }, access_grants: { items: { $ref: '#/components/schemas/access_grant' }, type: 'array', }, access_methods: { items: { $ref: '#/components/schemas/access_method' }, type: 'array', }, acs_access_groups: { items: { $ref: '#/components/schemas/acs_access_group', }, type: 'array', }, acs_credentials: { items: { $ref: '#/components/schemas/acs_credential', }, type: 'array', }, acs_encoders: { items: { $ref: '#/components/schemas/acs_encoder' }, type: 'array', }, acs_entrances: { items: { $ref: '#/components/schemas/acs_entrance' }, type: 'array', }, acs_systems: { items: { $ref: '#/components/schemas/acs_system' }, type: 'array', }, acs_users: { items: { $ref: '#/components/schemas/acs_user' }, type: 'array', }, action_attempts: { items: { $ref: '#/components/schemas/action_attempt', }, type: 'array', }, client_sessions: { items: { $ref: '#/components/schemas/client_session', }, type: 'array', }, connect_webviews: { items: { $ref: '#/components/schemas/connect_webview', }, type: 'array', }, connected_accounts: { items: { $ref: '#/components/schemas/connected_account', }, type: 'array', }, customization_profiles: { items: { $ref: '#/components/schemas/customization_profile', }, type: 'array', }, devices: { items: { $ref: '#/components/schemas/device' }, type: 'array', }, events: { items: { $ref: '#/components/schemas/event' }, type: 'array', }, instant_keys: { items: { $ref: '#/components/schemas/instant_key' }, type: 'array', }, noise_thresholds: { items: { $ref: '#/components/schemas/noise_threshold', }, type: 'array', }, spaces: { items: { $ref: '#/components/schemas/space' }, type: 'array', }, thermostat_daily_programs: { items: { $ref: '#/components/schemas/thermostat_daily_program', }, type: 'array', }, thermostat_schedules: { items: { $ref: '#/components/schemas/thermostat_schedule', }, type: 'array', }, unmanaged_access_codes: { items: { $ref: '#/components/schemas/unmanaged_access_code', }, type: 'array', }, unmanaged_acs_access_groups: { items: { $ref: '#/components/schemas/unmanaged_acs_access_group', }, type: 'array', }, unmanaged_acs_credentials: { items: { $ref: '#/components/schemas/unmanaged_acs_credential', }, type: 'array', }, unmanaged_acs_users: { items: { $ref: '#/components/schemas/unmanaged_acs_user', }, type: 'array', }, unmanaged_devices: { items: { $ref: '#/components/schemas/unmanaged_device', }, type: 'array', }, user_identities: { items: { $ref: '#/components/schemas/user_identity' }, type: 'array', }, workspaces: { items: { $ref: '#/components/schemas/workspace' }, type: 'array', }, }, type: 'object', 'x-route-path': '/workspaces', }, ok: { type: 'boolean' }, }, required: ['batch', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { console_session_with_workspace: [] }, { api_key: [] }, ], summary: '/workspaces/find_anything', tags: ['/workspaces'], 'x-batch-keys': [ 'user_identities', 'workspaces', 'devices', 'acs_entrances', 'acs_systems', 'acs_users', 'acs_access_groups', 'acs_encoders', 'action_attempts', 'client_sessions', 'unmanaged_acs_users', 'unmanaged_acs_access_groups', 'unmanaged_devices', 'connect_webviews', 'spaces', 'access_methods', 'access_grants', 'connected_accounts', 'events', 'instant_keys', 'acs_credentials', 'unmanaged_acs_credentials', 'unmanaged_access_codes', 'access_codes', 'thermostat_daily_programs', 'thermostat_schedules', 'noise_thresholds', 'customization_profiles', ], 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'find_anything', 'x-fern-sdk-return-value': 'batch', 'x-response-key': 'batch', 'x-title': 'Find Resources', 'x-undocumented': 'Unreleased.', }, }, '/workspaces/get': { get: { description: 'Returns the [workspace](https://www.seam.co/docs/core-concepts/workspaces) associated with the authentication value.', operationId: 'workspacesGetGet', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspace: { $ref: '#/components/schemas/workspace' }, }, required: ['workspace', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { console_session_with_workspace: [] }, { client_session: [] }, { client_session_with_customer: [] }, { client_session_with_customer_ro: [] }, { pat_with_workspace: [] }, { support_read_only_token: [] }, ], summary: '/workspaces/get', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'get', 'x-fern-sdk-return-value': 'workspace', 'x-response-key': 'workspace', 'x-title': 'Get a Workspace', }, }, '/workspaces/list': { get: { description: 'Returns a list of [workspaces](https://www.seam.co/docs/core-concepts/workspaces) associated with the authentication value.', operationId: 'workspacesListGet', responses: { '200': { content: { 'application/json': { schema: { properties: { ok: { type: 'boolean' }, workspaces: { items: { $ref: '#/components/schemas/workspace' }, type: 'array', }, }, required: ['workspaces', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { pat_with_workspace: [] }, { pat_without_workspace: [] }, { api_key: [] }, { client_session: [] }, { console_session_with_workspace: [] }, { console_session_without_workspace: [] }, { support_read_only_token: [] }, ], summary: '/workspaces/list', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'list', 'x-fern-sdk-return-value': 'workspaces', 'x-response-key': 'workspaces', 'x-title': 'List Workspaces', }, }, '/workspaces/reset_sandbox': { post: { description: 'Resets the [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces) associated with the authentication value. Note that this endpoint is only available for sandbox workspaces.', operationId: 'workspacesResetSandboxPost', responses: { '200': { content: { 'application/json': { schema: { properties: { action_attempt: { $ref: '#/components/schemas/action_attempt', }, ok: { type: 'boolean' }, }, required: ['action_attempt', 'ok'], type: 'object', }, }, }, description: 'OK', }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { pat_with_workspace: [] }, { console_session_with_workspace: [] }, ], summary: '/workspaces/reset_sandbox', tags: ['/workspaces'], 'x-action-attempt-type': 'RESET_SANDBOX_WORKSPACE', 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'reset_sandbox', 'x-fern-sdk-return-value': 'action_attempt', 'x-response-key': 'action_attempt', 'x-title': 'Reset a Sandbox Workspace', }, }, '/workspaces/update': { patch: { description: 'Updates the [workspace](https://www.seam.co/docs/core-concepts/workspaces) associated with the authentication value.', operationId: 'workspacesUpdatePatch', requestBody: { content: { 'application/json': { schema: { properties: { connect_partner_name: { description: 'Connect partner name for the workspace.', type: 'string', }, connect_webview_customization: { description: '[Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews) customizations for the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', properties: { logo_shape: { description: 'Logo shape for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', enum: ['circle', 'square'], nullable: true, type: 'string', }, primary_button_color: { description: 'Primary button color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, primary_button_text_color: { description: 'Primary button text color for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, success_message: { description: 'Success message for [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews).', nullable: true, type: 'string', }, }, type: 'object', }, is_publishable_key_auth_enabled: { description: 'Indicates whether publishable key authentication is enabled for this workspace.', type: 'boolean', }, is_suspended: { description: 'Indicates whether the workspace is suspended.', type: 'boolean', }, name: { description: 'Name of the workspace.', type: 'string', }, organization_id: { description: 'ID of the organization to assign the workspace to. The authenticated user must be the owner of the workspace and an admin of the target organization.', format: 'uuid', type: 'string', }, }, type: 'object', }, }, }, }, responses: { '200': { description: 'OK' }, '400': { description: 'Bad Request' }, '401': { description: 'Unauthorized' }, }, security: [ { api_key: [] }, { console_session_with_workspace: [] }, { pat_with_workspace: [] }, ], summary: '/workspaces/update', tags: ['/workspaces'], 'x-fern-sdk-group-name': ['workspaces'], 'x-fern-sdk-method-name': 'update', 'x-response-key': null, 'x-title': 'Update a Workspace', }, }, }, servers: [{ url: 'https://connect.getseam.com' }], tags: [ { description: 'access_codes', name: '/access_codes' }, { description: 'acs', name: '/acs' }, { description: 'action_attempts', name: '/action_attempts' }, { description: 'client_sessions', name: '/client_sessions' }, { description: 'connected_accounts', name: '/connected_accounts' }, { description: 'connect_webviews', name: '/connect_webviews' }, { description: 'devices', name: '/devices' }, { description: 'events', name: '/events' }, { description: 'health', name: '/health' }, { description: 'locks', name: '/locks' }, { description: 'networks', name: '/networks' }, { description: 'noise_sensors', name: '/noise_sensors' }, { description: 'phones', name: '/phones' }, { description: 'thermostats', name: '/thermostats' }, { description: 'user_identities', name: '/user_identities' }, { description: 'webhooks', name: '/webhooks' }, { description: 'workspaces', name: '/workspaces' }, ], } export default openapi